GNU libmicrohttpd 0.9.71
|
Header for platform-independent locks abstraction. More...
Go to the source code of this file.
Macros | |
#define | MHD_PANIC(msg) |
#define | MHD_mutex_destroy_chk_(pmutex) |
#define | MHD_mutex_lock_chk_(pmutex) |
#define | MHD_mutex_unlock_chk_(pmutex) |
Header for platform-independent locks abstraction.
Provides basic abstraction for locks/mutex. Any functions can be implemented as macro on some platforms unless explicitly marked otherwise. Any function argument can be skipped in macro, so avoid variable modification in function parameters.
Definition in file mhd_locks.h.
#define MHD_mutex_destroy_chk_ | ( | pmutex | ) |
Destroy previously initialised mutex and abort execution if error is detected.
pmutex | pointer to mutex |
Definition at line 121 of file mhd_locks.h.
#define MHD_mutex_lock_chk_ | ( | pmutex | ) |
Acquire lock on previously initialised mutex. If mutex was already locked by other thread, function blocks until mutex becomes available. If error is detected, execution will be aborted.
pmutex | pointer to mutex |
Definition at line 154 of file mhd_locks.h.
#define MHD_mutex_unlock_chk_ | ( | pmutex | ) |
Unlock previously initialised and locked mutex. If error is detected, execution will be aborted.
pmutex | pointer to mutex |
Definition at line 180 of file mhd_locks.h.
#define MHD_PANIC | ( | msg | ) |
Definition at line 61 of file mhd_locks.h.