[master] 128cc1a document struct exp_priv ownership

Nils Goroll nils.goroll at uplex.de
Wed Nov 8 15:41:06 UTC 2017


commit 128cc1a5086af89117840c08ea002e54ade1a061
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Nov 8 16:19:38 2017 +0100

    document struct exp_priv ownership

diff --git a/bin/varnishd/cache/cache_expire.c b/bin/varnishd/cache/cache_expire.c
index fc6e9b9..7bbd123 100644
--- a/bin/varnishd/cache/cache_expire.c
+++ b/bin/varnishd/cache/cache_expire.c
@@ -43,14 +43,15 @@
 struct exp_priv {
 	unsigned			magic;
 #define EXP_PRIV_MAGIC			0x9db22482
+	/* shared */
 	struct lock			mtx;
+	VSTAILQ_HEAD(,objcore)		inbox;
+	pthread_cond_t			condvar;
 
+	/* owned by exp thread */
 	struct worker			*wrk;
 	struct vsl_log			vsl;
-
-	VSTAILQ_HEAD(,objcore)		inbox;
 	struct binheap			*heap;
-	pthread_cond_t			condvar;
 };
 
 static struct exp_priv *exphdl;


More information about the varnish-commit mailing list