PDA

View Full Version : Shutdown needed on the main thread



Alundra
26th December 2015, 13:39
Hi,
Is it possible to switch to the main thread on the "about to quit" signal to shutdown what it needs to be shutdown on the main thread ?
I have a dirextx 11 rendering code and the shutdown needs to be on the main thread.
How solve this issue correctly ?
Thanks

anda_skoa
26th December 2015, 14:37
If you connect to an object that runs in the main thread, then the slot will be called in the context of the main thread independet of which thread executed the emit.

This is called a Queued Connection, the default behavior of the Auto Connection type used by connect() if not specifed otherwise.

Cheers,
_