Changeset: 935dccb07bfd for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/935dccb07bfd
Modified Files:
        gdk/gdk_system.h
Branch: default
Log Message:

Don't add lock to linked list twice.
This fixes bug 7354.


diffs (12 lines):

diff --git a/gdk/gdk_system.h b/gdk/gdk_system.h
--- a/gdk/gdk_system.h
+++ b/gdk/gdk_system.h
@@ -384,7 +384,7 @@ static void wininit_##n(void)                               
                \
 #define MT_lock_set(l)                                         \
        do {                                                    \
                _DBG_LOCK_COUNT_0(l);                           \
-               if (!MT_lock_try(l)) {                          \
+               if (!TryEnterCriticalSection(&(l)->lock)) {     \
                        _DBG_LOCK_CONTENTION(l);                \
                        MT_thread_setlockwait(l);               \
                        EnterCriticalSection(&(l)->lock);       \
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to