summaryrefslogtreecommitdiffstats
path: root/sys/sys/_task.h
diff options
context:
space:
mode:
authorzml <zml@FreeBSD.org>2010-06-01 16:04:01 +0000
committerzml <zml@FreeBSD.org>2010-06-01 16:04:01 +0000
commit7f5d6a35d6fa3ee4e0f0629aa54dbe3c7549b664 (patch)
tree800e1d5d39c5d5001f0b0a56fa9d521ea7616317 /sys/sys/_task.h
parentab54fd079f3a491799640409cffd4fd999b59303 (diff)
downloadFreeBSD-src-7f5d6a35d6fa3ee4e0f0629aa54dbe3c7549b664.zip
FreeBSD-src-7f5d6a35d6fa3ee4e0f0629aa54dbe3c7549b664.tar.gz
Revert taskqueue(9) related commits until mdf@ is approved and can
resolve issues. This reverts commits r207439, r208623, r208624
Diffstat (limited to 'sys/sys/_task.h')
-rw-r--r--sys/sys/_task.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/sys/_task.h b/sys/sys/_task.h
index 68e236f..2a51e1b 100644
--- a/sys/sys/_task.h
+++ b/sys/sys/_task.h
@@ -36,19 +36,15 @@
* taskqueue_run(). The first argument is taken from the 'ta_context'
* field of struct task and the second argument is a count of how many
* times the task was enqueued before the call to taskqueue_run().
- *
- * List of locks
- * (c) const after init
- * (q) taskqueue lock
*/
typedef void task_fn_t(void *context, int pending);
struct task {
- STAILQ_ENTRY(task) ta_link; /* (q) link for queue */
- u_short ta_pending; /* (q) count times queued */
- u_short ta_priority; /* (c) Priority */
- task_fn_t *ta_func; /* (c) task handler */
- void *ta_context; /* (c) argument for handler */
+ STAILQ_ENTRY(task) ta_link; /* link for queue */
+ u_short ta_pending; /* count times queued */
+ u_short ta_priority; /* Priority */
+ task_fn_t *ta_func; /* task handler */
+ void *ta_context; /* argument for handler */
};
#endif /* !_SYS__TASK_H_ */
OpenPOWER on IntegriCloud