There is no way of waking a thread from a sleep.
Maybe you could use a QWaitCondition instead?Using QTimer as a single shot and putting the thread in a while loop looking for a close and cleanup call seems like more system overhead while QTimer::start() only has an integer resolution and QThread::msleep() has unsigned long being another caveat. I could piggyback QTimers but it would just be more kludged code.






Reply With Quote
Bookmarks