19#if COAP_THREAD_RECURSIVE_CHECK
21coap_lock_unlock_func(
const char *file,
int line) {
23 if (global_lock.in_callback) {
24 assert(global_lock.lock_count > 0);
25 global_lock.lock_count--;
28 global_lock.unlock_file = file;
29 global_lock.unlock_line = line;
35coap_lock_lock_func(
const char *file,
int line) {
43 if (global_lock.in_callback) {
45 global_lock.lock_count++;
46 assert(global_lock.in_callback == global_lock.lock_count);
50 global_lock.lock_file, global_lock.lock_line, file, line);
58 assert(!global_lock.in_callback);
60 global_lock.lock_file = file;
61 global_lock.lock_line = line;
68coap_lock_unlock_func(
void) {
70 if (global_lock.in_callback) {
71 assert(global_lock.lock_count > 0);
72 global_lock.lock_count--;
80coap_lock_lock_func(
void) {
90 global_lock.lock_count++;
91 assert(global_lock.in_callback == global_lock.lock_count);
96 assert(!global_lock.in_callback);
108#pragma GCC diagnostic ignored "-Wunused-function"
Library specific build wrapper for coap_internal.h.
#define coap_mutex_unlock(a)
#define coap_mutex_trylock(a)
#define coap_mutex_lock(a)
#define coap_log_alert(...)