Re: Forcing a G Timeout to be handled by a specific thread

2011-10-11 Thread Ardhan Madras
Hi Andrew, I wrote some Glib programming example in the past, this code is about creating GMainContext, GMainLoop and GSources (that g_timeout_add() function and friends did) into separate thread, hope this will be usefull for you. #include glib.h typedef struct { GMainLoop *loop;

Re: Forcing a G Timeout to be handled by a specific thread

2011-10-11 Thread Ardhan Madras
Hi Andrew, I wrote some Glib programming example in the past, this code is about creating GMainContext, GMainLoop and GSources (that g_timeout_add() function and friends did) into separate thread, hope this will be usefull for you. #include glib.h typedef struct { GMainLoop *loop;

Re: Forcing a G Timeout to be handled by a specific thread

2011-10-05 Thread Chris Vine
On Wed, 05 Oct 2011 14:00:40 +0100 Andrew Wood a@me.com wrote: Is there a way to ensure a timeout callback set with g_timeout_add is always executed by a specific pthread? Timeouts started with g_timeout_add() or g_timeout_add_full() execute in the default main context, which is normally