[Interest] QThread & sleep on QMutex

Igor Mironchik igor.mironchik at gmail.com
Wed Jul 29 22:55:30 CEST 2015


Hi,

I hope that in this list I will find experts of synchronization and so on.

My question: is it good to make thread's sleep on mutex like this?

QMutex mutex;
mutex.lock();
mutex.tryLock( int msecs ); // This will make sleep for the given timeout.

Or it's not so good idea because thread will not release processor... Or 
processor will be released? Or something else?

Thank you.

-- 
Best Regards,
Igor Mironchik.




More information about the Interest mailing list