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;
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;
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