Author: Armin Rigo <[email protected]>
Branch: fast-gil
Changeset: r72206:ecc82fba4e83
Date: 2014-06-24 21:07 +0200
http://bitbucket.org/pypy/pypy/changeset/ecc82fba4e83/
Log: comment
diff --git a/rpython/translator/c/src/thread_gil.c
b/rpython/translator/c/src/thread_gil.c
--- a/rpython/translator/c/src/thread_gil.c
+++ b/rpython/translator/c/src/thread_gil.c
@@ -123,7 +123,6 @@
#else
assert(old_fastgil == 0);
#endif
- return;
}
/*
@@ -153,7 +152,8 @@
rpy_fastgil is still locked). Call RPyGilAcquire(). It will
enqueue ourselves at the end of the 'mutex_gil_stealer' queue.
If there is no other waiting thread, it will fall through both
- its pthread_mutex_lock() and pthread_mutex_timedlock() now.
+ its mutex_lock() and mutex_lock_timeout() now. But that's
+ unlikely, because we tested above that 'rpy_waiting_threads > 0'.
*/
RPyGilAcquire();
return 1;
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit