diff options
author | Michael Biebl <biebl@debian.org> | 2008-03-29 12:14:47 +0100 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2008-03-29 12:14:47 +0100 |
commit | 9a7c5b2414911cfe8919b9f376cfc047259081b7 (patch) | |
tree | 11052b804d3eb489bab2c90c94c41fdd90732eda /sync.h | |
parent | 12e8c69354614a03f06a8617f25d145ab091f504 (diff) | |
download | rsyslog-9a7c5b2414911cfe8919b9f376cfc047259081b7.tar.gz |
Imported Upstream version 1.21.0upstream/1.21.0
Diffstat (limited to 'sync.h')
-rw-r--r-- | sync.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -34,9 +34,9 @@ #define SYNC_OBJ_TOOL_INIT(x) SyncObjInit(&((x)->Sync_mut)) #define SYNC_OBJ_TOOL_EXIT(x) SyncObjExit(&((x)->Sync_mut)) -/* If we run in non-debug mode, we use inline code for the mutex +/* If we run in non-debug (release) mode, we use inline code for the mutex * operations. If we run in debug mode, we use functions, because they - * are better to trace in the callframe. + * are better to trace in the stackframe. */ #ifdef NDEBUG #define LockObj(x) pthread_mutex_lock((x)->Sync_mut) @@ -53,8 +53,8 @@ extern void unlockObj(pthread_mutex_t *mut); #else /* Code not to compile for threading support */ #define SYNC_OBJ_TOOL -#define SYNC_OBJ_TOOL_INIT -#define SYNC_OBJ_TOOL_EXIT +#define SYNC_OBJ_TOOL_INIT(x) +#define SYNC_OBJ_TOOL_EXIT(X) #define LockObj(x) #define UnlockObj(x) #endif |