diff options
| author | riastradh <riastradh@NetBSD.org> | 2021-12-31 14:22:10 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2021-12-31 14:22:10 +0000 |
| commit | 2cf4e92a9f6aa33edcc7d984ecce97e38d561afa (patch) | |
| tree | 9bd521d2f187cd283fb22701d18beca1840eb01d /sys/dev/sysmon/sysmon_taskq.h | |
| parent | 1106b4e3b76fcf4699d2ba21aba10c47c7b81066 (diff) | |
sysmon(9): New sysmon_task_queue_barrier(pri) function.
This waits for the completion of all tasks at priority pri or lower
that are currently queued at the time of the call.
Diffstat (limited to 'sys/dev/sysmon/sysmon_taskq.h')
| -rw-r--r-- | sys/dev/sysmon/sysmon_taskq.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sysmon/sysmon_taskq.h b/sys/dev/sysmon/sysmon_taskq.h index 32a4fcd7a2f..821a68d2ee8 100644 --- a/sys/dev/sysmon/sysmon_taskq.h +++ b/sys/dev/sysmon/sysmon_taskq.h @@ -1,4 +1,4 @@ -/* $NetBSD: sysmon_taskq.h,v 1.4 2015/04/27 07:51:28 pgoyette Exp $ */ +/* $NetBSD: sysmon_taskq.h,v 1.5 2021/12/31 14:22:11 riastradh Exp $ */ /* * Copyright (c) 2003 Wasabi Systems, Inc. @@ -41,5 +41,6 @@ void sysmon_task_queue_init(void); int sysmon_task_queue_fini(void); int sysmon_task_queue_sched(u_int, void (*)(void *), void *); +void sysmon_task_queue_barrier(u_int); #endif /* _DEV_SYSMON_SYSMON_TASKQ_H_ */ |
