multithreading - QMutex stuck in locked state -


I have a function that is part of a square and in this function there is a mute x at the beginning of the function. And a mute x just before its return. Unlock Now I had to face a situation where the mutex has been trapped in the looted state. What can this do if this function is the only place where I use to lock and unlock that Mute X The function is called from the main thread and 1 or 2 other qtthread.

Update: There was a problem due to not sleeping thread between function calls. Could the lack of sleep really add to Mutex fast? If you have been thrown into a function, then unlock

() Can not be executed at the end to ensure that in such cases QMutex unlocks, you can lock with the object. This object will automatically unlock the mute when it will be lost, even if it occurs during stack online after an exception.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -