#include <event.h>
#include <libpq-fe.h>
-typedef void (*libev_cb_f)(int sock, short flags, void *arg);
-
static void log_error(const char *, ...);
static void log_debug(const char *, ...);
static void fatal(const char *fmt, ...);
#include "list.h"
+typedef void (*libev_cb_f)(int sock, short flags, void *arg);
+
typedef struct DbConn {
List head;
const char *connstr;
static STATLIST(idle_list);
static STATLIST(active_list);
+static usec_t _time_cache = 0;
+
/*
* utility functions
*/
gettimeofday(&tv, NULL);
return (usec_t)tv.tv_sec * USEC + tv.tv_usec;
}
-static usec_t _time_cache = 0;
static usec_t get_cached_time(void)
{