bus: introduce concept of a "default" event loop per-thread and make use of it everywhere

Try to emphasize a bit that there should be a mapping between event
loops and threads, hence introduce a logic that there's one "default"
event loop for each thread, that can be queried via
"sd_event_default()".
This commit is contained in:
Lennart Poettering
2013-11-12 00:12:43 +01:00
parent d5e4ec5b1e
commit afc6adb5ec
11 changed files with 61 additions and 11 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ Manager *manager_new(void) {
return NULL;
}
r = sd_event_new(&m->event);
r = sd_event_default(&m->event);
if (r < 0) {
manager_free(m);
return NULL;