Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
how to properly pause and resume QThread execution?
Kofr last edited by Kofr
how to make threads to be in sleep or running state?
QSemaphore barrier; // In thread supposed to sleep: barrier.acquire(); // In thread that wakes the sleeping thread: barrier.release();
Be careful though, because you're asking for trouble putting a thread to sleep for too long (it won't be able to process events) and also try not to deadlock it. :)