Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
330cd262
Commit
330cd262
authored
May 26, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Concentrate waiter stuff in waiter includes
parent
720d0d5a
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
15 additions
and
22 deletions
+15
-22
cache.h
bin/varnishd/cache/cache.h
+2
-13
cache_backend_tcp.c
bin/varnishd/cache/cache_backend_tcp.c
+0
-1
cache_panic.c
bin/varnishd/cache/cache_panic.c
+0
-1
cache_session.c
bin/varnishd/cache/cache_session.c
+0
-1
cache_waiter.c
bin/varnishd/waiter/cache_waiter.c
+0
-1
cache_waiter_epoll.c
bin/varnishd/waiter/cache_waiter_epoll.c
+0
-1
cache_waiter_kqueue.c
bin/varnishd/waiter/cache_waiter_kqueue.c
+0
-1
cache_waiter_poll.c
bin/varnishd/waiter/cache_waiter_poll.c
+0
-1
cache_waiter_ports.c
bin/varnishd/waiter/cache_waiter_ports.c
+0
-1
waiter.h
bin/varnishd/waiter/waiter.h
+13
-1
No files found.
bin/varnishd/cache/cache.h
View file @
330cd262
...
...
@@ -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
*/
...
...
bin/varnishd/cache/cache_backend_tcp.c
View file @
330cd262
...
...
@@ -41,7 +41,6 @@
#include "cache_backend.h"
#include "vtcp.h"
#include "vsa.h"
#include "waiter/waiter.h"
#include "vtim.h"
struct
tcp_pool
{
...
...
bin/varnishd/cache/cache_panic.c
View file @
330cd262
...
...
@@ -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
...
...
bin/varnishd/cache/cache_session.c
View file @
330cd262
...
...
@@ -47,7 +47,6 @@
#include "cache.h"
#include "waiter/waiter.h"
#include "vsa.h"
#include "vtcp.h"
#include "vtim.h"
...
...
bin/varnishd/waiter/cache_waiter.c
View file @
330cd262
...
...
@@ -36,7 +36,6 @@
#include "cache/cache.h"
#include "waiter/waiter.h"
#include "waiter/waiter_priv.h"
#include "waiter/mgt_waiter.h"
...
...
bin/varnishd/waiter/cache_waiter_epoll.c
View file @
330cd262
...
...
@@ -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"
...
...
bin/varnishd/waiter/cache_waiter_kqueue.c
View file @
330cd262
...
...
@@ -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"
...
...
bin/varnishd/waiter/cache_waiter_poll.c
View file @
330cd262
...
...
@@ -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"
...
...
bin/varnishd/waiter/cache_waiter_ports.c
View file @
330cd262
...
...
@@ -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"
...
...
bin/varnishd/waiter/waiter.h
View file @
330cd262
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment