]> err.no Git - varnish/commit
Add an ALOCKED() macro which asserts that a mutex is locked. Unfortunately,
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 2 Feb 2008 10:58:05 +0000 (10:58 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 2 Feb 2008 10:58:05 +0000 (10:58 +0000)
commit499c372dd233a37b74e8774607aad013355a3f23
treeea9c8cb93b999f4c9eb0223aba84ad17bfcbc647
parent473c2c8e17d7d1cac40dd7159098915bbe7ee35f
Add an ALOCKED() macro which asserts that a mutex is locked.  Unfortunately,
there is no portable way to do this, so we have to fake it by trying to lock
the mutex and assert that it fails.  This can be very expensive, so we only
do it when built with --enable-diagnostics.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2416 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache.h