[Interest] Re : post event between threads

BOUCARD Olivier boucard_olivier at yahoo.fr
Mon Apr 2 18:14:27 CEST 2012


Hi Riccardo,

This kind of communication is done using a signal/slot.
This mechanism is thread-safe.

Olivier.




>________________________________
> De : Riccardo Roasio <riccardo.roasio at gmail.com>
>À : interest at qt-project.org 
>Envoyé le : Lundi 2 avril 2012 18h05
>Objet : [Interest] post event between threads
> 
>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...
>
>How can i do that?
>
>Thanks,
>Riccardo
>_______________________________________________
>Interest mailing list
>Interest at qt-project.org
>http://lists.qt-project.org/mailman/listinfo/interest
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120402/312fde4e/attachment.html>


More information about the Interest mailing list