mirror of https://github.com/yandex/odyssey.git
27 lines
442 B
C
27 lines
442 B
C
#ifndef ODYSSEY_WATCHDOG_H
|
|
#define ODYSSEY_WATCHDOG_H
|
|
|
|
/*
|
|
* Odyssey.
|
|
*
|
|
* Scalable PostgreSQL connection pooler.
|
|
*/
|
|
|
|
#include <sys/mman.h>
|
|
#include <sys/stat.h>
|
|
#include <fcntl.h>
|
|
#include <machinarium.h>
|
|
#include <unistd.h>
|
|
#include "macro.h"
|
|
#include "system.h"
|
|
|
|
#define ODYSSEY_WATCHDOG_ITER_INTERVAL 500 // ms
|
|
|
|
void
|
|
od_watchdog_worker(void *arg);
|
|
|
|
od_retcode_t
|
|
od_watchdog_invoke(od_system_t *server);
|
|
|
|
#endif /* ODYSSEY_WATCHDOG_H */
|