Lines Matching defs:task
19 #include <isc/task.h>
29 /* task event handler, sets a boolean to true */
34 set(isc_task_t *task, isc_event_t *event) {
37 UNUSED(task);
46 set_and_drop(isc_task_t *task, isc_event_t *event) {
49 UNUSED(task);
63 /* Create a task */
66 atf_tc_set_md_var(tc, "descr", "create and destroy a task");
70 isc_task_t *task = NULL;
77 result = isc_task_create(taskmgr, 0, &task);
80 isc_task_destroy(&task);
81 ATF_REQUIRE_EQ(task, NULL);
89 atf_tc_set_md_var(tc, "descr", "process task events");
93 isc_task_t *task = NULL;
108 result = isc_task_create(taskmgr, 0, &task);
112 event = isc_event_allocate(mctx, task, ISC_TASKEVENT_TEST,
117 isc_task_send(task, &event);
119 event = isc_event_allocate(mctx, task, ISC_TASKEVENT_TEST,
124 isc_task_send(task, &event);
137 isc_task_destroy(&task);
138 ATF_REQUIRE_EQ(task, NULL);
166 * Pause the task manager so we can fill up the work queue
270 * Edge case: this tests that the task manager behaves as expected when
295 * Pause the task manager so we can fill up the work queue