From 71d69002c6899845b8f5326ab5cf2f5aef691668 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 11 Dec 2007 16:41:07 +0000 Subject: optimized mutex macros --- sync.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sync.c') diff --git a/sync.c b/sync.c index 0151db5d..f9539153 100644 --- a/sync.c +++ b/sync.c @@ -57,6 +57,7 @@ SyncObjExit(pthread_mutex_t **mut) } } +#ifndef NDEBUG /* lock an object. The synchronization tool (mutex) must be passed in. */ void @@ -72,5 +73,6 @@ unlockObj(pthread_mutex_t *mut) { pthread_mutex_unlock(mut); } +#endif /* #ifndef NDEBUG */ #endif /* #ifdef USE_PTHREADS */ -- cgit