summaryrefslogtreecommitdiffstats
path: root/timeeventq.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-05-03 15:29:10 +0000
committerLennart Poettering <lennart@poettering.net>2005-05-03 15:29:10 +0000
commitbf2db17686a0e29b4e855cadbbaa5e5e4ed2def8 (patch)
tree5ed3e689a33892a3e944c3f87e38d638aeb462cd /timeeventq.c
parent4128ce517280dde1e09d0d86b570f5a413812494 (diff)
* 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
Diffstat (limited to 'timeeventq.c')
-rw-r--r--timeeventq.c4
1 files changed, 3 insertions, 1 deletions
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;