summaryrefslogtreecommitdiffstats
path: root/sys/sys/_task.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-10-05 04:16:01 +0000
committerimp <imp@FreeBSD.org>2004-10-05 04:16:01 +0000
commitcf32c9fe798d693c410e887bc556f34a7bead347 (patch)
treead9188e83f96f6272ded257087c644b20048745e /sys/sys/_task.h
parent4a0945bc22b3ab2778127bb3beacf1fd455ac628 (diff)
downloadFreeBSD-src-cf32c9fe798d693c410e887bc556f34a7bead347.zip
FreeBSD-src-cf32c9fe798d693c410e887bc556f34a7bead347.tar.gz
Add taskqueue_drain. This waits for the specified task to finish, if
running, or returns. The calling program is responsible for making sure that nothing new is enqueued. # man page coming soon.
Diffstat (limited to 'sys/sys/_task.h')
-rw-r--r--sys/sys/_task.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/_task.h b/sys/sys/_task.h
index f459c23..4eb6d64 100644
--- a/sys/sys/_task.h
+++ b/sys/sys/_task.h
@@ -45,6 +45,9 @@ struct task {
int ta_priority; /* priority of task in queue */
task_fn_t *ta_func; /* task handler */
void *ta_context; /* argument for handler */
+ int ta_flags; /* Flags */
};
+#define TAF_PENDING 0x1 /* Task is being run now */
+
#endif /* !_SYS__TASK_H_ */
OpenPOWER on IntegriCloud