summaryrefslogtreecommitdiff
path: root/src/common/loop.h
blob: 437466b20a7ab287446ac1687eec13f83d424178 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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 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_private_loop_poll_set(const yasl_loop *l, const struct pollfd **fds);

#endif /* YASL_PRIVATE_COMMON_LOOP_H */