Re: Signal emission from an object thread

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

 



Hi Tristan,

Le ven. 17 mars 2017 à 6:43, Tristan Van Berkom <tristan.vanberkom@xxxxxxxxxxxxxxx> 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.

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list




[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux