57#define AP_WATCHDOG_SINGLETON "_singleton_"
62#define AP_WATCHDOG_DEFAULT "_default_"
67#define AP_WD_TM_INTERVAL APR_TIME_C(1000000)
72#define AP_WD_TM_SLICE APR_TIME_C(100000)
75#define AP_WATCHDOG_STATE_STARTING 1
76#define AP_WATCHDOG_STATE_RUNNING 2
77#define AP_WATCHDOG_STATE_STOPPING 3
84#if !defined(AP_WD_DECLARE)
86#define AP_WD_DECLARE(type) type
87#define AP_WD_DECLARE_NONSTD(type) type
88#define AP_WD_DECLARE_DATA
89#elif defined(AP_WD_DECLARE_STATIC)
90#define AP_WD_DECLARE(type) type __stdcall
91#define AP_WD_DECLARE_NONSTD(type) type
92#define AP_WD_DECLARE_DATA
93#elif defined(AP_WD_DECLARE_EXPORT)
94#define AP_WD_DECLARE(type) __declspec(dllexport) type __stdcall
95#define AP_WD_DECLARE_NONSTD(type) __declspec(dllexport) type
96#define AP_WD_DECLARE_DATA __declspec(dllexport)
98#define AP_WD_DECLARE(type) __declspec(dllimport) type __stdcall
99#define AP_WD_DECLARE_NONSTD(type) __declspec(dllimport) type
100#define AP_WD_DECLARE_DATA __declspec(dllimport)
APR Global Locking Routines.
APR-UTIL registration of functions exported by modules.
APR Shared Memory Routines.
APR Thread Mutex Routines.
APR Thread and Process Library.
#define APR_DECLARE_EXTERNAL_HOOK(ns, link, ret, name, args)
#define APR_DECLARE_OPTIONAL_FN(ret, name, args)
apr_status_t ap_watchdog_callback_fn_t(int state, void *data, apr_pool_t *pool)
const char int apr_pool_t * pool
apr_vformatter_buff_t const char va_list ap
apr_int64_t apr_interval_time_t
static ap_watchdog_t * watchdog
static apr_status_t ap_watchdog_register_callback(ap_watchdog_t *w, apr_interval_time_t interval, const void *data, ap_watchdog_callback_fn_t *callback)
static apr_status_t ap_watchdog_get_instance(ap_watchdog_t **watchdog, const char *name, int parent, int singleton, apr_pool_t *p)
static apr_status_t ap_watchdog_set_callback_interval(ap_watchdog_t *w, apr_interval_time_t interval, const void *data, ap_watchdog_callback_fn_t *callback)
A structure to store information for each virtual server.