Lines Matching refs:tasks
34 isc_task_t **tasks;
54 pool->tasks = isc_mem_get(mctx, ntasks * sizeof(isc_task_t *));
56 pool->tasks[i] = NULL;
73 /* Create the tasks */
76 &pool->tasks[i], i);
81 isc_task_setprivilege(pool->tasks[i], priv);
82 isc_task_setname(pool->tasks[i], "taskpool", NULL);
91 isc_task_attach(pool->tasks[isc_random_uniform(pool->ntasks)], targetp);
118 /* Copy over the tasks from the old pool */
120 newpool->tasks[i] = pool->tasks[i];
121 pool->tasks[i] = NULL;
124 /* Create new tasks */
128 &newpool->tasks[i], i);
134 isc_task_setprivilege(newpool->tasks[i], priv);
135 isc_task_setname(newpool->tasks[i], "taskpool", NULL);
152 if (pool->tasks[i] != NULL) {
153 isc_task_detach(&pool->tasks[i]);
156 isc_mem_put(pool->mctx, pool->tasks,