[Interest] QThread & sleep on QMutex

Tony Rietwyk tony at rightsoft.com.au
Thu Jul 30 10:31:58 CEST 2015

Igor wrote: 

> Because in Qt 4 QThread::sleep is protected.

You can unprotect it by deriving your own class from QThread and making
whichever static methods public!  As long as you are aware of the pitfalls
(don't sleep in main thread, etc.), and much easier than messing with locks
just to gain access to sleep. 



More information about the Interest mailing list