What matters is when control is returned to Qt for event processing. The sequence
done()
start_next_job()
and
start_next_job()
done()
are equivalent because done won't actually be called until the GUI thread event handlers return to Qt. There may be some difference in the order of events in the queue, but I am not convinced that Qt preserves strict queue order.
|