19#if COAP_THREAD_RECURSIVE_CHECK
21coap_lock_unlock_func(
coap_lock_t *lock,
const char *file,
int line) {
23 if (lock->in_callback) {
24 assert(lock->lock_count > 0);
28 lock->unlock_file = file;
29 lock->unlock_line = line;
35coap_lock_lock_func(
coap_lock_t *lock,
int force,
const char *file,
int line) {
36 if (!force && lock->being_freed) {
43 if (lock->in_callback) {
46 assert(lock->in_callback == lock->lock_count);
50 lock->lock_file, lock->lock_line, file, line);
58 assert(!lock->in_callback);
60 lock->lock_file = file;
61 lock->lock_line = line;
63 if (!force && lock->being_freed) {
68 coap_lock_unlock_func(lock, file, line);
80 if (lock->in_callback) {
81 assert(lock->lock_count > 0);
91 if (!force && lock->being_freed) {
101 assert(lock->in_callback == lock->lock_count);
106 assert(!lock->in_callback);
109 if (!force && lock->being_freed) {
114 coap_lock_unlock_func(lock);
128#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(...)