blob: 60c5b647abb0e673deec4c0fba62474695ba1224 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#ifndef YASL_COMMON_LOOP_H
#define YASL_COMMON_LOOP_H
#include "yasl/loop.h"
struct pollfd;
int yasl_loop_next_timeout_ms(const struct yasl_loop *l);
/* The loop's current poll set, valid until the next watch change. Backends
* that wait on native events use it to wake on loop readiness. */
int yasl_loop_poll_set(const struct yasl_loop *l, const struct pollfd **fds);
/* Whether id is armed: added, not deleted, and not retired by its callback. */
bool yasl_loop_timer_armed(const struct yasl_loop *l, yasl_timer_id id);
#endif /* YASL_COMMON_LOOP_H */
|