summaryrefslogtreecommitdiffstats
path: root/support/include/workqueue.h
blob: 518be82f1b34b4c117be4f32c68180ec28c16950 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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