summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/test-event.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-11 19:34:13 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-12 00:12:43 +0100
commitafc6adb5ec7e73bc13156c43f52fb015cd80cc68 (patch)
tree999c8810a856d98826900c81c6bfb42fe4dc0ee7 /src/libsystemd-bus/test-event.c
parentd5e4ec5b1ee1e3f04a2cb0871490490eb47ef34a (diff)
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()".
Diffstat (limited to 'src/libsystemd-bus/test-event.c')
-rw-r--r--src/libsystemd-bus/test-event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/test-event.c b/src/libsystemd-bus/test-event.c
index 65c1c296f8..ba60a47a34 100644
--- a/src/libsystemd-bus/test-event.c
+++ b/src/libsystemd-bus/test-event.c
@@ -163,7 +163,7 @@ int main(int argc, char *argv[]) {
assert_se(pipe(b) >= 0);
assert_se(pipe(d) >= 0);
- assert_se(sd_event_new(&e) >= 0);
+ assert_se(sd_event_default(&e) >= 0);
got_a = false, got_b = false, got_c = false, got_d = 0;