blob: 3a1c542a4931a93e0101935bf0b8a72d29150098 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#ifndef YASL_PRIVATE_COMMON_LOOP_H
#define YASL_PRIVATE_COMMON_LOOP_H
#include "common/private_loop.h"
struct pollfd;
int yasl_private_loop_next_timeout_ms(const struct yasl_private_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_private_loop_poll_set(const struct yasl_private_loop *l, const struct pollfd **fds);
/* Whether id is armed: added, not deleted, and not retired by its callback. */
bool yasl_private_loop_timer_armed(const struct yasl_private_loop *l, yasl_private_timer_id id);
#endif /* YASL_PRIVATE_COMMON_LOOP_H */
|