On Fri, Aug 26, 2016 at 11:38 AM, Etienne Sandré-Chardonnal < etienne.san...@m4x.org> wrote:
> Thanks, does that mean that the moc-generated signal member function is > made fully thread safe? > Not really, no. Qt checks the connection type and compares the thread from which the signal is emitted to the thread affinity of the receiving object. Assuming you're using auto connection, If the threads match your slot will be executed immediately, if they don't Qt will post a deferred invocation event in the receiver object's thread's event queue, which is the thread safe. The implication is that you can emit signals from threads that don't have a running event loop, but you can't have queued slot invocations for objects that live in those threads, i.e. queued slot calls need an event loop. Kind regards.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest