[Interest] post event between threads
Andreas Pakulat
apaku at gmx.de
Mon Apr 2 18:20:10 CEST 2012
On 02.04.12 18:05:17, Riccardo Roasio wrote:
> Hi,
>
> how can i post an event from a thread to another?
>
> my application have a thread that read from a serial port and another
> thread that wait for something received on the serial port.
>
> I cannot use postEvent because in one thread i don'e have reference to
> the other...
Then you cannot post events between the threads. You could just revert
to plain old function calls, ensuring proper locking.
Also note, to "post events into a thread" you actually need a QEventLoop
running in that thread.
Andreas
More information about the Interest
mailing list