PDA

View Full Version : communication between threads



gayathrireddy
23rd November 2016, 05:36
how to communicate two threads and their types(or)methods...

anda_skoa
23rd November 2016, 09:40
Same way as without threads: you call methods directly or have signal/slot connections.

The only difference is that you need to protect against concurrent access of data using synchronization helpers such as QMutex and that for certain type of signal/slot connections the receiving thread needs to run an event loop.

Cheers,
_