diff options
| author | David Xu <davidxu@FreeBSD.org> | 2003-10-02 03:24:26 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2003-10-02 03:24:26 +0000 |
| commit | 28e2ce478d04a60f22169aedfce85d93c1ed3328 (patch) | |
| tree | 0ef04e9ef450b1b183063c0a3669031af08ebcdf /lib/libpthread/sys/lock.c | |
| parent | 6b66d5bb4b1555d8530573dd95f0aa25d59cd56e (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/sys/lock.c')
| -rw-r--r-- | lib/libpthread/sys/lock.c | 7 |
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 |
