[Interest] Thread guarantee on slots+timers

Sensei senseiwa at gmail.com
Fri Apr 11 10:04:38 CEST 2014


Dear all,

quite a simple question here. I have an object living in a QThread, and 
this object has a timer executing a public slot every X seconds.

If by chance I force calling the slot and meanwhile the timer emits a 
timeout() (or the other way round FWIW), am I guaranteed that the slot 
executes (by force) and next the slots gets run (by the timer) ?

My guess is: yes, since I have only one event loop. However, asking for 
confirmation is better :)


Thanks & Cheers!



More information about the Interest mailing list