[issue14976] queue.Queue() is not reentrant, so signals and GC can cause deadlocks

Antoine Pitrou report at bugs.python.org
Tue Sep 5 17:25:06 EDT 2017


Antoine Pitrou added the comment:

Le 05/09/2017 à 23:21, Gregory P. Smith a écrit :
> 
> FYI - here is an appropriately licensed (WTFPL) very simple lock-free queue implemented in C

Looks like it uses busy-waiting inside its get() equivalent.
Also we would need a portable version of the atomic instructions used
there (e.g. __sync_bool_compare_and_swap) :-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14976>
_______________________________________


More information about the Python-bugs-list mailing list