Skip to content

Commit

Permalink
coap_mutex_internal.h: Support LwIP ! NO_SYS mutexes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdeep1 committed Jul 20, 2023
1 parent 90c1a98 commit 4f164dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/coap3/coap_mutex_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__))
Expand Down

0 comments on commit 4f164dc

Please sign in to comment.