Re: Signal emission from an object thread



Hi Tristan,

Le ven. 17 mars 2017 à 6:43, Tristan Van Berkom <tristan vanberkom codethink co uk> a écrit :
On Thu, 2017-03-16 at 10:42 +0100, Emmanuel Pacaud wrote:
 I have an issue related to the use of g_signal_emit called from an
 object thread.


I have used GWeakRef for references that threads make to objects owned
by parent thread which may finalize with parent, to solve similar
problems, but I dont believe I've tried using signals belonging to a
thread spawning object from the thread itself.

Another approach, if you want to keep using GSignal, would be to create
a different object that is owned completely by the thread.

I think I will use this solution.

Thanks for your suggestions.

Cheers,

        Emmanuel.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]