1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

IO Loop: provide information about current loop and task time limit

This commit is contained in:
Maria Matejka
2024-04-03 12:05:02 +02:00
parent 6aa76dfb01
commit 91ba29a5c5
3 changed files with 21 additions and 2 deletions

View File

@@ -16,6 +16,12 @@
extern struct birdloop main_birdloop;
/* Currently running birdloop */
extern _Thread_local struct birdloop *this_birdloop;
/* Check that the task has enough time to do a bit more */
_Bool task_still_in_limit(void);
/* Start a new birdloop owned by given pool and domain */
struct birdloop *birdloop_new(pool *p, uint order, btime max_latency, const char *fmt, ...);