[PyQt] Threads with PyQt. Qt's or Python's?

Giovanni Bajo rasky at develer.com
Tue Feb 3 16:34:57 GMT 2009


On 2/3/2009 5:17 PM, Frédéric wrote:
> On mardi 03 février 2009, Giovanni Bajo wrote:
> Notice that it's easy to deadlock, if you don't pay enough attention (and
>> even if you do ;).
> 
> Why do you say it is easy to deadlock? Do you mean that Qt can do 
> unexpected things?

No: I meant that a programmer's mistake is easy because you're basically 
blocking a thread on another one. If for instance you send a similar 
blocking queued signal from this thread to the former, you get a 
deadlock (since the former is blocked waiting for the first signal to 
finish its process).

My suggestion mostly is not to use blocking queue signals.
-- 
Giovanni Bajo
Develer S.r.l.
http://www.develer.com




More information about the PyQt mailing list