summaryrefslogtreecommitdiff
path: root/lib/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/timer.h')
-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);