Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-02-03 18:52:17 +0300
committerFelix Fietkau <nbd@nbd.name>2017-02-03 18:52:21 +0300
commitde3f14b643f09c799845073eaf3577a334d0726d (patch)
tree0e40bd9a5eb0f3316b155a3b07a513c919fb4a0e /uloop.h
parent3b6181b63d80e77c04a52d7439a87850eea1fe78 (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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/uloop.h b/uloop.h
index 2f1eb4c..5ab9a5f 100644
--- a/uloop.h
+++ b/uloop.h
@@ -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;