Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 23 lines (17 sloc) 717 Bytes
#ifndef _BT_MUTEX_H_
#define _BT_MUTEX_H_
BT_HANDLE BT_CreateMutex (BT_ERROR *pError);
/**
* @brief Pends on a Mutex resource for the specified timeout.
*
* @param[in] hMutex HANDLE to Mutex object/event on which to pend.
* @param[in] oTimeoutTicks Number of kernel ticks to pend.
*
**/
BT_ERROR BT_PendMutex (BT_HANDLE hMutex, BT_TICK oTimeoutTicks);
BT_ERROR BT_AcquireMutex (BT_HANDLE hMutex, BT_TICK oTimeoutTicks);
BT_ERROR BT_ReleaseMutex (BT_HANDLE hMutex);
BT_ERROR BT_PendMutexRecursive (BT_HANDLE hMutex, BT_TICK oTimeoutTicks);
BT_ERROR BT_ReleaseMutexRecursive(BT_HANDLE hMutex);
BT_ERROR BT_ReleaseMutexFromISR (BT_HANDLE hMutex, BT_BOOL *pbHigherPriorityThreadWoken);
#endif