Quote Originally Posted by Tanuki-no Torigava View Post
It is obvious.
Really?
You quit before you unlock the mutex.
No, he doesn't.
So it stays locked forever.
Certainly not because he calls quit().
Also, a better way to lock is tryLock(someTimeOut).
No, it's not. It completely doesn't make any sense at all to call tryLock here.