diff options
Diffstat (limited to 'runloop.h')
-rw-r--r-- | runloop.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -6,5 +6,7 @@ // Return true to remove fd from runloop typedef bool runloop_callback(int fd); -void runloop_add_fd(int fd,runloop_callback *func); +void runloop_set_timeout(i64 usecs,runloop_callback *timeout_callback); + +void runloop_add_fd(int fd,runloop_callback *func,bool use_timeout); void runloop_run(void); // Returns when empty |