From bf2db17686a0e29b4e855cadbbaa5e5e4ed2def8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 3 May 2005 15:29:10 +0000 Subject: * Complete conflict detection stuff (including probing et al) * Introduce flxEntryGroups (replacing IDs) * priorize main loop sources git-svn-id: file:///home/lennart/svn/public/avahi/trunk@33 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- timeeventq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'timeeventq.c') diff --git a/timeeventq.c b/timeeventq.c index ec1a074..78513aa 100644 --- a/timeeventq.c +++ b/timeeventq.c @@ -74,7 +74,7 @@ static gboolean dispatch_func(GSource *source, GSourceFunc callback, gpointer us return TRUE; } -flxTimeEventQueue* flx_time_event_queue_new(GMainContext *context) { +flxTimeEventQueue* flx_time_event_queue_new(GMainContext *context, gint priority) { flxTimeEventQueue *q; static GSourceFuncs source_funcs = { @@ -89,6 +89,8 @@ flxTimeEventQueue* flx_time_event_queue_new(GMainContext *context) { q = (flxTimeEventQueue*) g_source_new(&source_funcs, sizeof(flxTimeEventQueue)); q->prioq = flx_prio_queue_new(compare); + g_source_set_priority((GSource*) q, priority); + g_source_attach(&q->source, context); return q; -- cgit