[Interest] Signal and Slot mechansim in Qt4.8.x
thiago.macieira at intel.com
Fri Aug 8 17:26:35 CEST 2014
On Friday 08 August 2014 14:29:18 Bo Thorsen wrote:
> As long as your application is single threaded, then the order is
> perfectly well defined. If you think of connections as implementations
> of the visitor pattern with one visitor object in a list of signals,
> then it's not hard to do this. Emitting a signal and the connected slot
> calls are exactly the same as calling any C++ function, so the order is
In the case of a multithreaded application, the order is also well-defined
provided the emission order is well-defined via proper C++11 "happens-before"
If two threads are emitting signals and have no synchronisation between them,
the order of reception is not synchronised either.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest