Lines Matching refs:task
27 #include <isc/task.h>
37 /* task event handler, sets a boolean to true */
42 set(isc_task_t *task, isc_event_t *event) {
45 UNUSED(task);
54 set_and_drop(isc_task_t *task, isc_event_t *event) {
57 UNUSED(task);
71 /* Create a task */
74 atf_tc_set_md_var(tc, "descr", "create and destroy a task");
78 isc_task_t *task = NULL;
85 result = isc_task_create(taskmgr, 0, &task);
88 isc_task_destroy(&task);
89 ATF_REQUIRE_EQ(task, NULL);
97 atf_tc_set_md_var(tc, "descr", "process task events");
101 isc_task_t *task = NULL;
116 result = isc_task_create(taskmgr, 0, &task);
120 event = isc_event_allocate(mctx, task, ISC_TASKEVENT_TEST,
125 isc_task_send(task, &event);
127 event = isc_event_allocate(mctx, task, ISC_TASKEVENT_TEST,
132 isc_task_send(task, &event);
145 isc_task_destroy(&task);
146 ATF_REQUIRE_EQ(task, NULL);
174 * Pause the task manager so we can fill up the work queue
278 * Edge case: this tests that the task manager behaves as expected when
303 * Pause the task manager so we can fill up the work queue