[issue14976] queue.Queue() is not reentrant, so signals and GC can cause deadlocks
Antoine Pitrou
report at bugs.python.org
Tue Sep 5 11:50:58 EDT 2017
Antoine Pitrou added the comment:
> Would it make sense get() and put() to add gc.disable() and gc.enable() whenever GC is already enabled?
That doesn't sound very nice if some thread is waiting on a get() for a very long time (which is reasonable if you have a thread pool that's only used sporadically, for example). Also, using gc.disable() and gc.enable() in multi-threaded programs is a bit delicate.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14976>
_______________________________________
More information about the Python-bugs-list
mailing list