core: annotate event sources
This commit is contained in:
+7
-1
@@ -81,12 +81,18 @@ static int scope_arm_timer(Scope *s) {
|
||||
return sd_event_source_set_enabled(s->timer_event_source, SD_EVENT_ONESHOT);
|
||||
}
|
||||
|
||||
return sd_event_add_time(
|
||||
r = sd_event_add_time(
|
||||
UNIT(s)->manager->event,
|
||||
&s->timer_event_source,
|
||||
CLOCK_MONOTONIC,
|
||||
now(CLOCK_MONOTONIC) + s->timeout_stop_usec, 0,
|
||||
scope_dispatch_timer, s);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
(void) sd_event_source_set_description(s->timer_event_source, "scope-timer");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void scope_set_state(Scope *s, ScopeState state) {
|
||||
|
||||
Reference in New Issue
Block a user