Changeset: 6eadc519fbee for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/6eadc519fbee
Modified Files:
gdk/gdk_system.h
Branch: Jun2023
Log Message:
Missing parenthesis.
diffs (32 lines):
diff --git a/gdk/gdk_system.h b/gdk/gdk_system.h
--- a/gdk/gdk_system.h
+++ b/gdk/gdk_system.h
@@ -468,17 +468,17 @@ typedef struct MT_Lock {
#define MT_lock_try(l) (pthread_mutex_trylock(&(l)->lock) == 0 &&
(_DBG_LOCK_LOCKER(l), true))
#ifdef LOCK_STATS
-#define MT_lock_set(l) \
- do { \
- _DBG_LOCK_COUNT_0(l); \
- if (pthread_mutex_trylock(&(l)->lock) { \
- _DBG_LOCK_CONTENTION(l); \
- MT_thread_setlockwait(l); \
- pthread_mutex_lock(&(l)->lock); \
- MT_thread_setlockwait(NULL); \
- } \
- _DBG_LOCK_LOCKER(l); \
- _DBG_LOCK_COUNT_2(l); \
+#define MT_lock_set(l) \
+ do { \
+ _DBG_LOCK_COUNT_0(l); \
+ if (pthread_mutex_trylock(&(l)->lock)) { \
+ _DBG_LOCK_CONTENTION(l); \
+ MT_thread_setlockwait(l); \
+ pthread_mutex_lock(&(l)->lock); \
+ MT_thread_setlockwait(NULL); \
+ } \
+ _DBG_LOCK_LOCKER(l); \
+ _DBG_LOCK_COUNT_2(l); \
} while (0)
#else
#define MT_lock_set(l) \
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]