diff options
Diffstat (limited to 'support/include/workqueue.h')
-rw-r--r-- | support/include/workqueue.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/support/include/workqueue.h b/support/include/workqueue.h new file mode 100644 index 0000000..518be82 --- /dev/null +++ b/support/include/workqueue.h @@ -0,0 +1,18 @@ +/* + * Copyright (C) 2019 Trond Myklebust <trond.myklebust@hammerspace.com> + */ +#ifndef WORKQUEUE_H +#define WORKQUEUE_H + +struct xthread_workqueue; + +struct xthread_workqueue *xthread_workqueue_alloc(void); +void xthread_workqueue_shutdown(struct xthread_workqueue *wq); + +void xthread_work_run_sync(struct xthread_workqueue *wq, + void (*fn)(void *), void *data); + +void xthread_workqueue_chroot(struct xthread_workqueue *wq, + const char *path); + +#endif |