[Qt-interest] Doubts about the Plugin Framework
Bruno Seabra Lima
bslima at telemidia.puc-rio.br
Tue Mar 16 22:24:33 CET 2010
Yes, i saw that.
Thanks for the heads-up.
On Tue, Mar 16, 2010 at 4:15 PM, Justin Noel <justin at ics.com> wrote:
> Bruno Seabra Lima wrote:
>>
>> I just have one more question.
>> I have one Thread with signals/slots of my editor, and in a
>> PluginControl class i connect these signals/slots to the signals/slots
>> of the plugin.
>> In some part of my code, when i emit a signal, i have to make sure
>> that all the slots connected to it were executed before continue the
>> processing.
>>
>> So resuming my question is:
>> Is there anyway to do this with signal connected to slots in other Threads
>> ?
>>
>
> There is a connection type called BlockingQueuedConnection. That will cause
> the signaling thread to block while connected slots are executed. This can
> be tricky to use as it's easy to deadlock if you leave mutexs locked before
> emitting.
>
> --Justin
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
Bruno Seabra Mendonça Lima
--------------
Bacharel em Ciência da Computação - UFMA
Mestrando da PUC-Rio
Pesquisador Laboratório Telemidia (PUC-Rio)
-------------
www.bslima.com
More information about the Qt-interest-old
mailing list