File: workqueue.h

package info (click to toggle)
nfs-utils 1%3A2.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 7,276 kB
  • sloc: ansic: 52,182; sh: 5,371; python: 2,151; makefile: 971
file content (18 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (2)
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