[Qt-interest] Doubts about the Plugin Framework

Justin Noel justin at ics.com
Tue Mar 16 20:15:42 CET 2010


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: justin.vcf
Type: text/x-vcard
Size: 243 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100316/87fec010/attachment.vcf 


More information about the Qt-interest-old mailing list