Changeset: 5215b1e40972 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/5215b1e40972
Modified Files:
        gdk/gdk_utils.c
Branch: default
Log Message:

Remove GDKthreadLock: when this code is run, there are no other threads anymore.


diffs (28 lines):

diff --git a/gdk/gdk_utils.c b/gdk/gdk_utils.c
--- a/gdk/gdk_utils.c
+++ b/gdk/gdk_utils.c
@@ -1214,8 +1214,6 @@ GDKprepareExit(void)
        }
 }
 
-static MT_Lock GDKthreadLock = MT_LOCK_INITIALIZER(GDKthreadLock);
-
 void
 GDKreset(int status)
 {
@@ -1249,7 +1247,6 @@ GDKreset(int status)
        if (status == 0) {
                /* they had their chance, now kill them */
                bool killed = false;
-               MT_lock_set(&GDKthreadLock);
                for (Thread t = GDKthreads; t < GDKthreads + THREADS; t++) {
                        MT_Id victim;
                        if ((victim = (MT_Id) ATOMIC_GET(&t->pid)) != 0) {
@@ -1315,7 +1312,6 @@ GDKreset(int status)
 
                memset(THRdata, 0, sizeof(THRdata));
                gdk_bbp_reset();
-               MT_lock_unset(&GDKthreadLock);
        }
        ATOMunknown_clean();
 
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to