GNU libmicrohttpd 0.9.77
|
initialization routines More...
Go to the source code of this file.
Functions | |
static void | mhd_panic_std (void *cls, const char *file, unsigned int line, const char *reason) |
void | MHD_init (void) |
void | MHD_fini (void) |
void | MHD_check_global_init_ (void) |
Variables | |
volatile unsigned int | global_init_count = 0 |
initialization routines
Definition in file init.c.
void MHD_check_global_init_ | ( | void | ) |
Check whether global initialisation was performed and call initialiser if necessary.
Definition at line 136 of file init.c.
References global_init_count, MHD_init(), MHD_mutex_lock_chk_, and MHD_mutex_unlock_chk_.
Referenced by MHD_daemon_create().
void MHD_fini | ( | void | ) |
Global teardown work.
Definition at line 115 of file init.c.
References MHD_monotonic_sec_counter_finish().
void MHD_init | ( | void | ) |
Globally initialize library.
Initialize do setup work.
Definition at line 86 of file init.c.
References _, MHD_monotonic_sec_counter_init(), MHD_PANIC, mhd_panic, mhd_panic_std(), and NULL.
Referenced by MHD_check_global_init_().
|
static |
Default implementation of the panic function, prints an error message and aborts.
cls | unused |
file | name of the file with the problem |
line | line number with the problem |
reason | error message with details |
Definition at line 61 of file init.c.
References _.
Referenced by MHD_init().
volatile unsigned int global_init_count = 0 |
Track global initialisation
Definition at line 33 of file init.c.
Referenced by MHD_check_global_init_().