dacs_mutex_init

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.

SEE ALSO

dacs_mutex_share(3), dacs_mutex_accept(3), dacs_mutex_lock(3), dacs_mutex_try_lock(3), dacs_mutex_unlock(3), dacs_mutex_release(3), dacs_mutex_destroy(3)