Added chMtxGetOwnerI().
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12562 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
parent
c16c4e516e
commit
c7024d3cc6
|
@ -132,6 +132,22 @@ static inline bool chMtxQueueNotEmptyS(mutex_t *mp) {
|
|||
return queue_notempty(&mp->queue);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the mutex owner thread.
|
||||
*
|
||||
* @param[out] mp pointer to a @p mutex_t structure
|
||||
* @return The owner thread.
|
||||
* @retval NULL if the mutex is not owned.
|
||||
*
|
||||
* @iclass
|
||||
*/
|
||||
static inline thread_t *chMtxGetOwnerI(mutex_t *mp) {
|
||||
|
||||
chDbgCheckClassI();
|
||||
|
||||
return mp->owner;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the next mutex in the mutexes stack of the current thread.
|
||||
*
|
||||
|
|
|
@ -75,6 +75,7 @@
|
|||
*****************************************************************************
|
||||
|
||||
*** Next ***
|
||||
- NEW: Added a new function chMtxGetOwnerI() to RT mutexes subsystem.
|
||||
- NEW: STM32L433 added to STM32L4xx HAL.
|
||||
- CHG: chFifoObjectInit() renamed to chFifoObjectInitAligned(). Added a new
|
||||
chFifoObjectInit() without the alignment parameter.
|
||||
|
|
Loading…
Reference in New Issue