Lines Matching defs:tasks
29 isc_task_t ** tasks;
52 pool->tasks = isc_mem_get(mctx, ntasks * sizeof(isc_task_t *));
53 if (pool->tasks == NULL) {
58 pool->tasks[i] = NULL;
80 /* Create the tasks */
82 result = isc_task_create(tmgr, quantum, &pool->tasks[i]);
87 isc_task_setname(pool->tasks[i], "taskpool", NULL);
98 isc_task_attach(pool->tasks[i % pool->ntasks], targetp);
128 /* Copy over the tasks from the old pool */
130 newpool->tasks[i] = pool->tasks[i];
131 pool->tasks[i] = NULL;
134 /* Create new tasks */
137 &newpool->tasks[i]);
142 isc_task_setname(newpool->tasks[i], "taskpool", NULL);
159 if (pool->tasks[i] != NULL)
160 isc_task_detach(&pool->tasks[i]);
162 isc_mem_put(pool->mctx, pool->tasks,
175 if (pool->tasks[i] != NULL)
176 isc_task_setprivilege(pool->tasks[i], priv);