Searched refs:worker_pool (Results 1 - 3 of 3) sorted by relevance

/dovecot/src/indexer/
H A Dworker-pool.h8 struct worker_pool *
10 void worker_pool_deinit(struct worker_pool **pool);
12 bool worker_pool_have_busy_connections(struct worker_pool *pool);
14 bool worker_pool_get_connection(struct worker_pool *pool,
16 void worker_pool_release_connection(struct worker_pool *pool,
20 worker_pool_find_username_connection(struct worker_pool *pool,
H A Dworker-pool.c19 struct worker_pool { struct
28 worker_connection_list_free(struct worker_pool *pool,
31 struct worker_pool *
34 struct worker_pool *pool;
36 pool = i_new(struct worker_pool, 1);
42 void worker_pool_deinit(struct worker_pool **_pool)
44 struct worker_pool *pool = *_pool;
66 bool worker_pool_have_busy_connections(struct worker_pool *pool)
71 static int worker_pool_add_connection(struct worker_pool *pool)
93 worker_connection_list_free(struct worker_pool *poo
[all...]
H A Dindexer.c21 static struct worker_pool *worker_pool; variable in typeref:struct:worker_pool
37 !worker_pool_have_busy_connections(worker_pool);
67 conn = worker_pool_find_username_connection(worker_pool,
75 if (!worker_pool_get_connection(worker_pool, &conn))
100 if (worker_pool != NULL) /* not in deinit */
101 worker_pool_release_connection(worker_pool, request->conn);
131 worker_pool = worker_pool_init("indexer-worker",
139 worker_pool_deinit(&worker_pool);

Completed in 13 milliseconds