Author: Armin Rigo <[email protected]>
Branch:
Changeset: r72237:288d756d83a5
Date: 2014-06-26 10:18 +0200
http://bitbucket.org/pypy/pypy/changeset/288d756d83a5/
Log: Shot in the dark, but this might help on *BSD platforms.
diff --git a/rpython/translator/c/src/thread_pthread.c
b/rpython/translator/c/src/thread_pthread.c
--- a/rpython/translator/c/src/thread_pthread.c
+++ b/rpython/translator/c/src/thread_pthread.c
@@ -332,6 +332,9 @@
p->locked = was_locked;
p = next;
}
+ /* Also reinitialize the 'mutex_gil' mutexes, and resets the
+ number of other waiting threads to zero. */
+ RPyGilAllocate();
}
int RPyThreadLockInit(struct RPyOpaque_ThreadLock *lock)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit