Hi,

My application locks a QMutex into a try catch statment. The problem is that if an exception is raised, I don't know if the mutex is locked or not, and if I call "unlock" I get an application crash with a message like "a mutex must be unlocked in the same thread that locked it".
QMutex class don't provide any method to know if it is locked.

A solution could be to declare a boolean variable to use it as "mutex_locked" ?

Thanks,