mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-03 00:15:49 +03:00
coap_mutex_internal.h: Support LwIP ! NO_SYS mutexes
This commit is contained in:
1 parent
90c1a98044
commit
4f164dcb2f
1 file changed
+2
@@ -60,6 +60,8 @@ typedef int coap_mutex_t;
|
||||
#else /* !NO SYS */
|
||||
#include <lwip/sys.h>
|
||||
typedef sys_mutex_t *coap_mutex_t;
|
||||
#define COAP_MUTEX_DEFINE(_name) \
|
||||
static coap_mutex_t _name
|
||||
#define TOKENPASTE(x, y) x ## y
|
||||
#define TOKENPASTE2(x, y) TOKENPASTE(x, y)
|
||||
#define COAP_MUTEX_INITIALIZER (&TOKENPASTE2(coapMutexAt, __LINE__))
|
||||
|
||||
Reference in new issue
Block a user