On Friday 07 August 2009 19:35:49 puzzlecracker wrote: > The goal is to notify main application that something occurred in > thread thread. In my case, I can't use gtk in multi-threaded way > (calling functions of main thread from spawned one), so I am trying to > do it via pipes. I already have a working solution on linux, and now want > to make it work cross-platforms. It is possible to call g_idle_add to notify main loop that it should call your function. This method will thread-safe. I think that this is much easier than pipes. Or you can call gdk_threads_enter/gdk_threads_leave and call gtk functions normally. > > I also saw that it could be a visual studio issue in this thread > http://mail.nl.linux.org/xchat-discuss/2004-03/msg00177.html > > Any suggestions?
Attachment:
signature.asc
Description: This is a digitally signed message part.