From 8b73362a4a88aaa3642db398d17e65eab871d9ed Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 29 Jan 2008 08:35:26 +0000 Subject: - improved debug support a bit (assertions) - restructured code, moved some part out of syslogd.c to action.c, where they belong (still some more to do in that regard ;)) --- sync.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sync.c') diff --git a/sync.c b/sync.c index af2119a3..913469a0 100644 --- a/sync.c +++ b/sync.c @@ -60,7 +60,9 @@ SyncObjExit(pthread_mutex_t **mut) void lockObj(pthread_mutex_t *mut) { - pthread_mutex_lock(mut); + BEGINfunc + d_pthread_mutex_lock(mut); + ENDfunc } /* unlock an object. The synchronization tool (mutex) must be passed in. @@ -68,6 +70,8 @@ lockObj(pthread_mutex_t *mut) void unlockObj(pthread_mutex_t *mut) { - pthread_mutex_unlock(mut); + BEGINfunc + d_pthread_mutex_unlock(mut); + ENDfunc } #endif /* #ifndef NDEBUG */ -- cgit