QMutexLocker - locking question
Unsolved
General and Desktop
-
Hey
So I have a
QMutexLocker l(&mLock);
When this function gets called and mLock is already locked by another thread. What happens?
- The program stops & try-lock/wait forever until he can access the mutex to lock it?
- The program stops and does nothing.
I'm trying to debug app locks :- )
TIA!
-
@Dariusz said in QMutexLocker - locking question:
So if its already locked, then it waits?
This is exactly what a mutex is build for...