Changeset: 35121caaf32d for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=35121caaf32d
Modified Files:
        gdk/gdk_system.c
Branch: Oct2014
Log Message:

Fix possible race condition.


diffs (13 lines):

diff --git a/gdk/gdk_system.c b/gdk/gdk_system.c
--- a/gdk/gdk_system.c
+++ b/gdk/gdk_system.c
@@ -592,8 +592,8 @@ MT_create_thread(MT_Id *t, void (*f) (vo
                p->func = f;
                p->arg = arg;
                p->exited = 0;
+               pthread_mutex_lock(&posthread_lock);
                p->next = posthreads;
-               pthread_mutex_lock(&posthread_lock);
                posthreads = p;
                f = thread_starter;
                pthread_mutex_unlock(&posthread_lock);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to