Commit 330cd262 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Concentrate waiter stuff in waiter includes

parent 720d0d5a
......@@ -41,6 +41,8 @@
#include "vapi/vsl_int.h"
#include "vapi/vsm_int.h"
#include "waiter/waiter.h"
#include <sys/socket.h>
#include <pthread.h>
......@@ -366,19 +368,6 @@ struct lru {
unsigned n_objcore;
};
/* Connection waiter -------------------------------------------------
* Describing a file-descriptor/connection being waited on
*/
struct waited {
unsigned magic;
#define WAITED_MAGIC 0x1743992d
int fd;
void *ptr;
double idle;
VTAILQ_ENTRY(waited) list;
};
/* Stored object -----------------------------------------------------
* Pointer to a stored object, and the methods it supports
*/
......
......@@ -41,7 +41,6 @@
#include "cache_backend.h"
#include "vtcp.h"
#include "vsa.h"
#include "waiter/waiter.h"
#include "vtim.h"
struct tcp_pool {
......
......@@ -47,7 +47,6 @@
#include "storage/storage.h"
#include "vcl.h"
#include "vcli_priv.h"
#include "waiter/waiter.h"
/*
* The panic string is constructed in memory, then copied to the
......
......@@ -47,7 +47,6 @@
#include "cache.h"
#include "waiter/waiter.h"
#include "vsa.h"
#include "vtcp.h"
#include "vtim.h"
......
......@@ -36,7 +36,6 @@
#include "cache/cache.h"
#include "waiter/waiter.h"
#include "waiter/waiter_priv.h"
#include "waiter/mgt_waiter.h"
......
......@@ -41,7 +41,6 @@
#include "cache/cache.h"
#include "waiter/waiter.h"
#include "waiter/waiter_priv.h"
#include "waiter/mgt_waiter.h"
#include "vtim.h"
......
......@@ -40,7 +40,6 @@
#include "cache/cache.h"
#include "waiter/waiter.h"
#include "waiter/waiter_priv.h"
#include "waiter/mgt_waiter.h"
#include "vtim.h"
......
......@@ -36,7 +36,6 @@
#include "cache/cache.h"
#include "waiter/waiter.h"
#include "waiter/waiter_priv.h"
#include "waiter/mgt_waiter.h"
#include "vtim.h"
......
......@@ -43,7 +43,6 @@
#include "cache/cache.h"
#include "waiter/waiter.h"
#include "waiter/waiter_priv.h"
#include "waiter/mgt_waiter.h"
#include "vtim.h"
......
......@@ -42,9 +42,21 @@
* Public interfaces
*/
struct waited;
struct waiter;
/* Connection waiter -------------------------------------------------
* Describing a file-descriptor/connection being waited on
*/
struct waited {
unsigned magic;
#define WAITED_MAGIC 0x1743992d
int fd;
void *ptr;
double idle;
VTAILQ_ENTRY(waited) list;
};
enum wait_event {
WAITER_REMCLOSE,
WAITER_TIMEOUT,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment