NAME
dacs_mutex_init
- Initialize a mutual exclusion variable.
SYNOPSIS
DACS_ERR_T
dacs_mutex_init ( dacs_mutex_t *mutex )
Return parameter |
|
*mutex |
A pointer to a newly initialized mutex handle. |
DESCRIPTION
The dacs_mutex_init service
initializes a mutual exclusion variable and returns a handle to it.
RETURN VALUE
The
dacs_mutex_init service
returns an error indicator defined as:
- DACS_SUCCESS: normal return.
- DACS_ERR_INVALID_ADDR: the pointer is invalid.
- DACS_ERR_NO_RESOURCE: unable to allocate required resources.