summaryrefslogtreecommitdiff
path: root/src/rototiller.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-02-17 14:01:58 -0800
committerVito Caputo <vcaputo@pengaru.com>2021-02-17 14:01:58 -0800
commite6bea65b6e53e7e283d30e1437da827c6325c589 (patch)
tree39110a12cd010c7a325c1f68b17567ca290bc6d5 /src/rototiller.h
parent55db80c6970b8643b4777c3b5586531e2d2e7469 (diff)
rototiller: add rototiller_quiesce()
This is a wrapper around threads_wait_idle(), so the caller can easily synchronize with outstanding work before tearing things down or otherwise rejiggering the world.
Diffstat (limited to 'src/rototiller.h')
-rw-r--r--src/rototiller.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rototiller.h b/src/rototiller.h
index fde7d43..56e1a90 100644
--- a/src/rototiller.h
+++ b/src/rototiller.h
@@ -26,6 +26,7 @@ typedef struct rototiller_module_t {
} rototiller_module_t;
int rototiller_init(void);
+void rototiller_quiesce(void);
void rototiller_shutdown(void);
const rototiller_module_t * rototiller_lookup_module(const char *name);
void rototiller_get_modules(const rototiller_module_t ***res_modules, size_t *res_n_modules);
© All Rights Reserved