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.
Arguments
mutex
pointer to the mutex to create
Return value
ERR_OK if successful, another err_t otherwise
Functions calling sys_mutex_new()
Functions called by sys_mutex_new()
sys_mutex_new()
Data read by sys_mutex_new()
sys_mutex_new()
Type of sys_mutex_new()
sys_mutex_new()