[issue8299] Improve GIL in 2.7
Antoine Pitrou
report at bugs.python.org
Thu Apr 15 16:28:04 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
> if _POSIX_SEMAPHORES is defined, thread_pthread.h is designed to use
> the (fair) semaphore. If it is not present, or
> HAVE_BROKEN_POSIX_SEMAPHORES defined, the semaphore is supposed to be
> emulated using a condition variable.
> Now, I don't have access to a mac or linux machine, but does a modern
> python build perhaps actually have USE_SEMAPHORES defined?
Yes, it does.
Actually, I find it unlikely that any modern Unix would fall back on the
non-semaphore version. All this code is (mostly) very old.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8299>
_______________________________________
More information about the Python-bugs-list
mailing list