summaryrefslogtreecommitdiff
path: root/lib/libpthread/sys/lock.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2003-10-02 03:24:26 +0000
committerDavid Xu <davidxu@FreeBSD.org>2003-10-02 03:24:26 +0000
commit28e2ce478d04a60f22169aedfce85d93c1ed3328 (patch)
tree0ef04e9ef450b1b183063c0a3669031af08ebcdf /lib/libpthread/sys/lock.c
parent6b66d5bb4b1555d8530573dd95f0aa25d59cd56e (diff)
Notes
Diffstat (limited to 'lib/libpthread/sys/lock.c')
-rw-r--r--lib/libpthread/sys/lock.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libpthread/sys/lock.c b/lib/libpthread/sys/lock.c
index 9cae0361e4e5..543487b782e9 100644
--- a/lib/libpthread/sys/lock.c
+++ b/lib/libpthread/sys/lock.c
@@ -34,7 +34,12 @@
#include "atomic_ops.h"
#include "lock.h"
-#define LCK_ASSERT assert
+#ifdef _LOCK_DEBUG
+#define LCK_ASSERT(e) assert(e)
+#else
+#define LCK_ASSERT(e)
+#endif
+
#define MAX_SPINS 500
void