dacs_mutex_lock

NAME

dacs_mutex_lock - Acquire a lock on a mutual exclusion variable.

SYNOPSIS

DACS_ERR_T dacs_mutex_lock ( dacs_mutex_t mutex )

Call parameter  
mutex The handle of the mutex to lock.

DESCRIPTION

The dacs_mutex_lock service acquires the specified mutex. The caller must either be the owner of the mutex, or have previously accepted the mutex with a call to dacs_mutex_accept(). This service blocks the caller until the mutex is acquired.

RETURN VALUE

The dacs_mutex_lock service returns an error indicator defined as:
  • DACS_SUCCESS: normal return; lock succeeded.
  • DACS_ERR_INVALID_HANDLE: the specified mutex handle is not valid.

SEE ALSO

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