summaryrefslogtreecommitdiff
path: root/sync.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2008-03-29 12:14:47 +0100
committerMichael Biebl <biebl@debian.org>2008-03-29 12:14:47 +0100
commit9a7c5b2414911cfe8919b9f376cfc047259081b7 (patch)
tree11052b804d3eb489bab2c90c94c41fdd90732eda /sync.h
parent12e8c69354614a03f06a8617f25d145ab091f504 (diff)
downloadrsyslog-9a7c5b2414911cfe8919b9f376cfc047259081b7.tar.gz
Imported Upstream version 1.21.0upstream/1.21.0
Diffstat (limited to 'sync.h')
-rw-r--r--sync.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sync.h b/sync.h
index 3637d45..95e7716 100644
--- a/sync.h
+++ b/sync.h
@@ -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