GNU libmicrohttpd
0.9.59
|
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 118 of file mhd_locks.h.
Referenced by MHD_create_response_from_data(), MHD_destroy_response(), MHD_start_daemon_va(), and MHD_stop_daemon().
#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 151 of file mhd_locks.h.
Referenced by check_nonce_nc(), cleanup_connection(), close_all_connections(), close_connection(), internal_add_connection(), internal_suspend_connection_(), MHD_accept_connection(), MHD_check_global_init_(), MHD_cleanup_connections(), MHD_connection_handle_idle(), MHD_connection_handle_write(), MHD_destroy_response(), MHD_increment_response_rc(), MHD_ip_count_lock(), MHD_resume_connection(), MHD_set_connection_option(), MHD_update_last_activity_(), and resume_suspended_connections().
#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 177 of file mhd_locks.h.
Referenced by check_nonce_nc(), cleanup_connection(), close_all_connections(), close_connection(), internal_add_connection(), internal_suspend_connection_(), MHD_accept_connection(), MHD_check_global_init_(), MHD_cleanup_connections(), MHD_connection_handle_idle(), MHD_connection_handle_write(), MHD_destroy_response(), MHD_increment_response_rc(), MHD_ip_count_unlock(), MHD_resume_connection(), MHD_set_connection_option(), MHD_update_last_activity_(), resume_suspended_connections(), try_ready_chunked_body(), and try_ready_normal_body().
#define MHD_PANIC | ( | msg | ) |
Definition at line 61 of file mhd_locks.h.