mirror of https://github.com/yandex/odyssey.git
25 lines
392 B
C
25 lines
392 B
C
#ifndef ODYSSEY_CRON_H
|
|
#define ODYSSEY_CRON_H
|
|
|
|
/*
|
|
* Odyssey.
|
|
*
|
|
* Scalable PostgreSQL connection pooler.
|
|
*/
|
|
|
|
typedef struct od_cron od_cron_t;
|
|
|
|
struct od_cron {
|
|
uint64_t stat_time_us;
|
|
od_global_t *global;
|
|
od_atomic_u64_t startup_errors;
|
|
|
|
pthread_mutex_t lock;
|
|
int online;
|
|
};
|
|
|
|
void od_cron_init(od_cron_t *);
|
|
int od_cron_start(od_cron_t *, od_global_t *);
|
|
|
|
#endif /* ODYSSEY_CRON_H */
|