[master] 630b045 Bring Lck_DestroyClass() back.

Poul-Henning Kamp phk at FreeBSD.org
Wed Jan 3 10:14:05 UTC 2018


commit 630b0455c7dcbfc1581f5f82f9fc1df93c1d4e34
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Jan 3 09:52:17 2018 +0000

    Bring Lck_DestroyClass() back.

diff --git a/bin/varnishd/cache/cache.h b/bin/varnishd/cache/cache.h
index fdf131f..b02fe00 100644
--- a/bin/varnishd/cache/cache.h
+++ b/bin/varnishd/cache/cache.h
@@ -757,7 +757,8 @@ int Lck_CondWait(pthread_cond_t *cond, struct lock *lck, double);
 		assert(Lck__Owned(a));	\
 	} while (0)
 
-struct VSC_lck *Lck_CreateClass(struct vsc_seg **, const char *name);
+struct VSC_lck *Lck_CreateClass(struct vsc_seg **, const char *);
+void Lck_DestroyClass(struct vsc_seg **);
 
 #define LOCK(nam) extern struct VSC_lck *lck_##nam;
 #include "tbl/locks.h"
diff --git a/bin/varnishd/cache/cache_lck.c b/bin/varnishd/cache/cache_lck.c
index 1509723..9f122e9 100644
--- a/bin/varnishd/cache/cache_lck.c
+++ b/bin/varnishd/cache/cache_lck.c
@@ -250,6 +250,12 @@ Lck_CreateClass(struct vsc_seg **sg, const char *name)
 	return(VSC_lck_New(sg, name));
 }
 
+void
+Lck_DestroyClass(struct vsc_seg **sg)
+{
+	VSC_lck_Destroy(sg);
+}
+
 #define LOCK(nam) struct VSC_lck *lck_##nam;
 #include "tbl/locks.h"
 


More information about the varnish-commit mailing list