GNU libmicrohttpd  0.9.70
mhd_locks.h File Reference
#include "mhd_options.h"
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for mhd_locks.h:
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

◆ MHD_mutex_destroy_chk_

#define MHD_mutex_destroy_chk_ (   pmutex)
Value:
do { \
if (! MHD_mutex_destroy_ (pmutex)) \
MHD_PANIC (_ ("Failed to destroy mutex.\n")); \
} while (0)
#define _(String)
Definition: mhd_options.h:42

Destroy previously initialised mutex and abort execution if error is detected.

Parameters
pmutexpointer to mutex

Definition at line 121 of file mhd_locks.h.

Referenced by MHD_create_response_from_data(), MHD_daemon_destroy(), MHD_destroy_response(), MHD_response_from_buffer(), MHD_response_queue_for_destroy(), MHD_start_daemon_va(), MHD_stop_daemon(), and setup_thread_pool().

◆ MHD_mutex_lock_chk_

◆ MHD_mutex_unlock_chk_

◆ MHD_PANIC

#define MHD_PANIC (   msg)
Value:
do { fprintf (stderr, \
"Abnormal termination at %d line in file %s: %s\n", \
(int) __LINE__, __FILE__, msg); abort (); \
} while (0)

Definition at line 61 of file mhd_locks.h.