summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-02-06 15:06:12 +0100
committerMaria Matejka <mq@ucw.cz>2023-02-07 14:28:25 +0100
commit9508cd85ce21a476ba47417999d2157594c73c85 (patch)
tree33a0a963164a44e861894943a90c315863cf1b46 /lib
parenta2fd889a3b95960311560a3796be5cdf92affcfc (diff)
Protocol shutdown/restart from limits is respecting the loops
Diffstat (limited to 'lib')
-rw-r--r--lib/timer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/timer.h b/lib/timer.h
index 555fc96f..4a3a2108 100644
--- a/lib/timer.h
+++ b/lib/timer.h
@@ -99,12 +99,14 @@ tm_set_max(timer *t, btime when)
}
static inline void
-tm_start_max(timer *t, btime after)
+tm_start_max_in(timer *t, btime after, struct birdloop *loop)
{
btime rem = tm_remains(t);
- tm_start(t, MAX_(rem, after));
+ tm_start_in(t, MAX_(rem, after), loop);
}
+#define tm_start_max(t, after) tm_start_max_in(t, after, &main_birdloop)
+
/* In sysdep code */
void times_update(void);