Lines Matching refs:threadPool
165 ctx->threadPool = NULL;
173 ctx->threadPool = POOL_create(1, MAX_IO_JOBS - 2);
175 if (!ctx->threadPool)
187 ctx->totalIoJobs = ctx->threadPool ? MAX_IO_JOBS : 2;
201 return ctx->threadPool && ctx->threadPoolActive;
233 POOL_joinJobs(ctx->threadPool);
252 if(ctx->threadPool) {
257 POOL_free(ctx->threadPool);
304 POOL_add(ctx->threadPool, ctx->poolFunction, job);
471 assert(ctx->base.threadPool != NULL); /* we shouldn't be here if we work in sync mode */
559 if(ctx->base.threadPool)
571 if(ctx->base.threadPool)