Changeset: 4e04a87dd0c0 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/4e04a87dd0c0
Modified Files:
        gdk/gdk_system.c
Branch: default
Log Message:

Avoid recursive lock.


diffs (19 lines):

diff --git a/gdk/gdk_system.c b/gdk/gdk_system.c
--- a/gdk/gdk_system.c
+++ b/gdk/gdk_system.c
@@ -934,7 +934,6 @@ static bool
 MT_kill_thread(struct mtthread *t)
 {
        assert(t != thread_self());
-       join_threads();
 #ifdef HAVE_PTHREAD_H
 #ifdef HAVE_PTHREAD_KILL
        if (pthread_kill(t->hdl, SIGHUP) == 0)
@@ -966,6 +965,7 @@ MT_kill_threads(void)
        bool killed = false;
 
        assert(self == &mainthread);
+       join_threads();
        thread_lock();
        for (struct mtthread *t = mtthreads; t; t = t->next) {
                if (t == self)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to