Hello, > Use g_idle_add; that has the benefits of: > > a) being thread safe > b) having a wake_up fd in the glib mainloop already being polled > so it will wake up any main thread code in the mainloop/ Oh, this is very interesting. From a quick glance at the code, it seems like this would indeed wake up the main thread. Miguel.