mirror of https://github.com/yandex/odyssey.git
24 lines
453 B
C
24 lines
453 B
C
#ifndef OD_WORKER_POOL_H
|
|
#define OD_WORKER_POOL_H
|
|
|
|
/*
|
|
* Odyssey.
|
|
*
|
|
* Scalable PostgreSQL connection pooler.
|
|
*/
|
|
|
|
typedef struct od_workerpool od_workerpool_t;
|
|
|
|
struct od_workerpool
|
|
{
|
|
od_worker_t *pool;
|
|
int round_robin;
|
|
int count;
|
|
};
|
|
|
|
void od_workerpool_init(od_workerpool_t*);
|
|
int od_workerpool_start(od_workerpool_t*, od_global_t*, int);
|
|
void od_workerpool_feed(od_workerpool_t*, machine_msg_t*);
|
|
|
|
#endif /* OD_WORKER_POOL_H */
|