QThread object is not destroyed there so it won't wait for anything.
That's what I have written two posts ago. But it has nothing to do with quit() that he calls.I think yes because he cannot leave the loop. In fact simple form will look like:
So what in this situation do you think he should do if tryLock() fails? And please tell me how to avoid thread starvation with tryLock() as I'm sure you will agree that using tryLock() instead of lock() creates a possibility of starving the thread.I mean if you want to lock - better do it with tryLock (or check with isLocked before) because you can escape the thread lockout in order to write non-blocking threads.
Bookmarks