Re: glib - main event loop

2016-03-20 Thread Chris Vine
On Sun, 20 Mar 2016 06:25:10 +0100 Krzysztof wrote: > Thanks Chris. It worked. > Does it mean that idle source can be effectively added to global loop > only? Can't I have idle source in other contexts? You can, but you have to use g_source_attach(). So you would have

Re: glib - main event loop

2016-03-19 Thread Krzysztof
Thanks Chris. It worked. Does it mean that idle source can be effectively added to global loop only? Can't I have idle source in other contexts? On 03/16/2016 01:46 PM, Chris Vine wrote: On Tue, 15 Mar 2016 20:03:20 +0100 Krzysztof wrote: On 03/15/2016 12:54 AM, Chris

Re: glib - main event loop

2016-03-14 Thread Chris Vine
On Tue, 15 Mar 2016 00:00:37 +0100 Krzysztof wrote: > How to get idle event source called in main event loop? I do the > following: > my idle function is: > > static gboolean > idle ( gpointer data ) > { > g_print ( "Idle called\n" ); > if ( counter1 == 0 &&

glib - main event loop

2016-03-14 Thread Krzysztof
How to get idle event source called in main event loop? I do the following: my idle function is: static gboolean idle ( gpointer data ) { g_print ( "Idle called\n" ); if ( counter1 == 0 && counter2 == 0 ) { g_main_loop_quit ( ( GMainLoop * ) data ); return FALSE;

GLib Main event loop with IOChannel and order of events? cross-post gtk-list (no answer)

2008-12-11 Thread Sune Ahlgren
Hi, I'm writing a UDP server where I set up 1 socket for multicast messages(SOCKET A) and 1 for the wildcard address ANY(SOCKET B). These sockets are monitored as IOChannels and added to the main event loop. Problem -- In case of receiving a single multicast message I get 1 event

GLib Main event loop with IOChannel and order of events?

2008-12-02 Thread Sune Ahlgren
Hi, I'm writing a UDP server where I set up 1 socket for multicast messages(SOCKET A) and 1 for the wildcard address ANY(SOCKET B). These sockets are monitored as IOChannels and added to the main event loop. Problem -- In case of receiving a single multicast message I get 1 event on

FYI: Qt-glib main event loop patch (common main loop)

2005-11-07 Thread nf2
Hi! I have rewritten my Qt-glib main event loop patch completely. It adds an optional -glibmainloop switch to the ./configure script of Qt, which integrates a modified QEventloop as a GSource into glib main loop. http://www.scheinwelt.at/~norbertf/common_main_loop/ I have tested lots of KDE