sys_mutex_new() is only used within LwIP.
 
Symbols
loading...
Files
loading...

sys_mutex_new() function

Create a new mutex. Note that mutexes are expected to not be taken recursively by the lwIP code, so both implementation types (recursive or non-recursive) should work. The mutex is allocated to the memory that 'mutex' points to (which can be both a pointer or the actual OS structure). If the mutex has been created, ERR_OK should be returned. Returning any other error will provide a hint what went wrong, but except for assertions, no real error handling is implemented.

Syntax

err_t sys_mutex_new(sys_mutex_t *mutex);
Implemented in sys_arch.c:393

Arguments

mutex

pointer to the mutex to create

Return value

ERR_OK if successful, another err_t otherwise

References

LocationReferrerText
sys_arch.c:393
err_t sys_mutex_new(sys_mutex_t *mutex) {
sys.h:137
err_t sys_mutex_new(sys_mutex_t *mutex);
mem.c:542mem_init()
if (sys_mutex_new(&mem_mutex) != ERR_OK) {
tcpip.c:612tcpip_init()
if (sys_mutex_new(&lock_tcpip_core) != ERR_OK) {

Call Tree

Functions calling sys_mutex_new()
Functions called by sys_mutex_new()
all items filtered out
sys_mutex_new()
all items filtered out
Data read by sys_mutex_new()
sys_mutex_new()
Type of sys_mutex_new()
sys_mutex_new()
all items filtered out