DACS_ERR_T dacs_mutex_try_lock ( dacs_mutex_t mutex )
Call parameter | |
mutex | The handle of the mutex to lock. |
The dacs_mutex_try_lock service attempts to acquire a lock on a mutex. The caller must either be the owner of the mutex, or have previously accepted the mutex with a call to dacs_mutex_accept(). If the mutex is available for locking, this service gets the lock and returns. If a lock on the mutex is not available, this method returns with a DACS_ERR_MUTEX_BUSY status.