diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-02-03 18:52:17 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-02-03 18:52:21 +0300 |
commit | de3f14b643f09c799845073eaf3577a334d0726d (patch) | |
tree | 0e40bd9a5eb0f3316b155a3b07a513c919fb4a0e /uloop.h | |
parent | 3b6181b63d80e77c04a52d7439a87850eea1fe78 (diff) |
uloop: add uloop_cancelling function
Returns true if uloop_run is still running and uloop_cancelled is set
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'uloop.h')
-rw-r--r-- | uloop.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -97,6 +97,8 @@ int uloop_timeout_remaining(struct uloop_timeout *timeout); int uloop_process_add(struct uloop_process *p); int uloop_process_delete(struct uloop_process *p); +bool uloop_cancelling(void); + static inline void uloop_end(void) { uloop_cancelled = true; |