Changeset: 1277a045aa29 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/1277a045aa29 Modified Files: gdk/gdk_system.h Branch: Dec2023 Log Message:
Also in optimized compiles, if there is locking contention, record what we're waiting for. diffs (26 lines): diff --git a/gdk/gdk_system.h b/gdk/gdk_system.h --- a/gdk/gdk_system.h +++ b/gdk/gdk_system.h @@ -497,7 +497,6 @@ 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); \ @@ -510,14 +509,6 @@ typedef struct MT_Lock { _DBG_LOCK_LOCKER(l); \ _DBG_LOCK_COUNT_2(l); \ } while (0) -#else -#define MT_lock_set(l) \ - do { \ - pthread_mutex_lock(&(l)->lock); \ - _DBG_LOCK_LOCKER(l); \ - } while (0) -#endif - #define MT_lock_unset(l) \ do { \ _DBG_LOCK_UNLOCKER(l); \ _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org