[Twisted-Python] Re: [Twisted-commits] r14683 - Make the toMainThread Queue unlimited in size, instead of max size 1.
James Y Knight
foom at fuhm.net
Fri Oct 7 11:31:02 MDT 2005
On Oct 7, 2005, at 11:05 AM, Stephen Thorne wrote:
> Make the toMainThread Queue unlimited in size, instead of max size 1.
> This can cause deadlocks.
Why does it cause deadlocks? That queue should be the only lock the
tsr thread blocks upon, besides the GIL. Making the queue infinite
means the tsr thread could sit there generating large amounts of
events before the main thread gets around to reading any of them,
getting in a state of continuous backlog and badness. From what I can
see, the select thread *should* block until the main thread has read
the data.
James
More information about the Twisted-Python
mailing list