mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-26 17:01:42 +03:00
multi-thread: Add in thread safe support
Optional compile time thread safe code supported. Locking is done at the coap_context_t level, and if enabled is primarily done coap_threadsafe.c and coap_threadsafe_internal.h. coap_threadsafe_internal.h causes coap_X() to get mapped to coap_X_locked() throughout the libcoap library code with the exception of coap_threadsafe.c if thread safe is enabled.
This commit is contained in:
1 parent
6b4fac968d
commit
c69c5d5af0
50 files changed
+1998
-130
No files matched your search
@@ -79,6 +79,14 @@ const char *define_list[] = {
|
||||
"coap_log_debug(",
|
||||
"coap_log_oscore(",
|
||||
"coap_dtls_log(",
|
||||
"coap_lock_init(",
|
||||
"coap_lock_lock(",
|
||||
"coap_lock_unlock(",
|
||||
"coap_lock_being_freed(",
|
||||
"coap_lock_check_locked(",
|
||||
"coap_lock_callback(",
|
||||
"coap_lock_callback_ret(",
|
||||
"coap_lock_invert(",
|
||||
};
|
||||
|
||||
/* xxx *function */
|
||||
|
||||
Reference in new issue
Block a user