[Qt-interest] QMutex deadlock without using QMutex

Andre Somers andre at familiesomers.nl
Tue Apr 27 16:31:33 CEST 2010


Hi,

I am running into a weird problem.
For running calculations on a large dataset, I split up the work over a 
number of threads. I use signals and slots to communicate between the 
worker threads and a coordinator thread, and also between that 
coordinator thread and the rest of the application. I do not use any 
explicit thread synchronisation methods like QMutex in that part of the 
application.

Still, I get this error in my output:
QMutex::lock: Deadlock detected in thread <some number>

What could this mean? Are there other causes conceivable for this 
happening? Is there behind-the-scenes locking/unlocking of mutexes that 
Qt is doing when performing signalling between threads?

André





More information about the Qt-interest-old mailing list