core: annotate event sources

This commit is contained in:
Tom Gundersen
2015-04-29 17:08:31 +02:00
parent 77cfd1139c
commit 7dfbe2e3fc
13 changed files with 93 additions and 8 deletions
+4
View File
@@ -444,6 +444,8 @@ static void timer_enter_waiting(Timer *t, bool initial) {
if (r < 0)
goto fail;
(void) sd_event_source_set_description(t->monotonic_event_source, "timer-monotonic");
} else if (t->monotonic_event_source) {
r = sd_event_source_set_enabled(t->monotonic_event_source, SD_EVENT_OFF);
@@ -471,6 +473,8 @@ static void timer_enter_waiting(Timer *t, bool initial) {
if (r < 0)
goto fail;
(void) sd_event_source_set_description(t->realtime_event_source, "timer-realtime");
} else if (t->realtime_event_source) {
r = sd_event_source_set_enabled(t->realtime_event_source, SD_EVENT_OFF);