Cygdrvmutexunlock, Cygdrvmutexrelease, Cyg_drv_mutex_unlock – Comtrol eCos User Manual
Page 400: Cyg_drv_mutex_release, Cyg_drv_cond_init

Chapter 18. Device Driver Interface to the Kernel
Description:
Attempt to lock the mutex pointed to by the
mutex
argument without waiting. If the mutex is already locked
by some other thread then this function returns
FALSE
. If the function can lock the mutex without waiting,
then
TRUE
is returned.
cyg_drv_mutex_unlock
Function:
void cyg_drv_mutex_unlock( cyg_drv_mutex *mutex )
Arguments:
mutex
- pointer to mutex to unlock
Result:
None
Level:
Thread
Description:
Unlock the mutex pointed to by the
mutex
argument. If there are any threads waiting to claim the lock, one
of them is woken up to try and claim it.
cyg_drv_mutex_release
Function:
void cyg_drv_mutex_release( cyg_drv_mutex *mutex )
Arguments:
mutex
- pointer to mutex to release
Result:
None
Level:
Thread
Description:
Release all threads waiting on the mutex pointed to by the
mutex
argument. These threads will return from
cyg_drv_mutex_lock()
with a
FALSE
result and will not have claimed the mutex. This function has no
effect on any thread that may have the mutex claimed.
296