2018-08-28 14:43:46 +00:00
|
|
|
#ifndef ODYSSEY_WORKER_H
|
|
|
|
#define ODYSSEY_WORKER_H
|
2018-03-02 10:00:52 +00:00
|
|
|
|
|
|
|
/*
|
2018-03-12 14:03:15 +00:00
|
|
|
* Odyssey.
|
2018-03-02 10:00:52 +00:00
|
|
|
*
|
2018-04-04 13:19:58 +00:00
|
|
|
* Scalable PostgreSQL connection pooler.
|
2018-03-02 10:00:52 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct od_worker od_worker_t;
|
|
|
|
|
|
|
|
struct od_worker
|
|
|
|
{
|
|
|
|
int64_t machine;
|
|
|
|
int id;
|
|
|
|
machine_channel_t *task_channel;
|
2018-11-19 15:32:05 +00:00
|
|
|
uint64_t clients_processed;
|
2018-03-13 13:17:27 +00:00
|
|
|
od_global_t *global;
|
2018-03-02 10:00:52 +00:00
|
|
|
};
|
|
|
|
|
2018-03-13 13:17:27 +00:00
|
|
|
void od_worker_init(od_worker_t*, od_global_t*, int);
|
2018-03-02 10:00:52 +00:00
|
|
|
int od_worker_start(od_worker_t*);
|
|
|
|
|
2018-08-28 14:43:46 +00:00
|
|
|
#endif /* ODYSSEY_WORKER_H */
|