Lines Matching defs:tasks
38 isc_task_t ** tasks;
61 pool->tasks = isc_mem_get(mctx, ntasks * sizeof(isc_task_t *));
62 if (pool->tasks == NULL) {
67 pool->tasks[i] = NULL;
89 /* Create the tasks */
91 result = isc_task_create(tmgr, quantum, &pool->tasks[i]);
96 isc_task_setname(pool->tasks[i], "taskpool", NULL);
107 isc_task_attach(pool->tasks[i % pool->ntasks], targetp);
137 /* Copy over the tasks from the old pool */
139 newpool->tasks[i] = pool->tasks[i];
140 pool->tasks[i] = NULL;
143 /* Create new tasks */
146 &newpool->tasks[i]);
151 isc_task_setname(newpool->tasks[i], "taskpool", NULL);
168 if (pool->tasks[i] != NULL) {
169 isc_task_detach(&pool->tasks[i]);
172 isc_mem_put(pool->mctx, pool->tasks,