mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-06 13:15:19 -05:00
Add small formatting change
This commit is contained in:
parent
3ac8598089
commit
fbdacd1704
1 changed files with 5 additions and 5 deletions
|
|
@ -215,12 +215,12 @@ static inline void vPortRecursiveLock( uint32_t ulLockNum,
|
||||||
|
|
||||||
#ifdef configASSERT
|
#ifdef configASSERT
|
||||||
configASSERT( ulLockNum < portRTOS_SPINLOCK_COUNT );
|
configASSERT( ulLockNum < portRTOS_SPINLOCK_COUNT );
|
||||||
#endif
|
#endif /* configASSERT */
|
||||||
uint32_t ulCoreNum = get_core_num();
|
uint32_t ulCoreNum = get_core_num();
|
||||||
uint32_t ulLockBit = 1u << ulLockNum;
|
uint32_t ulLockBit = 1u << ulLockNum;
|
||||||
#ifdef configASSERT
|
#ifdef configASSERT
|
||||||
configASSERT( ulLockBit < 256u );
|
configASSERT( ulLockBit < 256u );
|
||||||
#endif
|
#endif /* configASSERT */
|
||||||
|
|
||||||
if( uxAcquire )
|
if( uxAcquire )
|
||||||
{
|
{
|
||||||
|
|
@ -230,7 +230,7 @@ static inline void vPortRecursiveLock( uint32_t ulLockNum,
|
||||||
{
|
{
|
||||||
#ifdef configASSERT
|
#ifdef configASSERT
|
||||||
configASSERT( ucRecursionCountByLock[ ulLockNum ] != 255u );
|
configASSERT( ucRecursionCountByLock[ ulLockNum ] != 255u );
|
||||||
#endif
|
#endif /* configASSERT */
|
||||||
ucRecursionCountByLock[ ulLockNum ]++;
|
ucRecursionCountByLock[ ulLockNum ]++;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -243,7 +243,7 @@ static inline void vPortRecursiveLock( uint32_t ulLockNum,
|
||||||
__mem_fence_acquire();
|
__mem_fence_acquire();
|
||||||
#ifdef configASSERT
|
#ifdef configASSERT
|
||||||
configASSERT( ucRecursionCountByLock[ ulLockNum ] == 0 );
|
configASSERT( ucRecursionCountByLock[ ulLockNum ] == 0 );
|
||||||
#endif
|
#endif /* configASSERT */
|
||||||
ucRecursionCountByLock[ ulLockNum ] = 1;
|
ucRecursionCountByLock[ ulLockNum ] = 1;
|
||||||
ucOwnedByCore[ ulCoreNum ] |= ulLockBit;
|
ucOwnedByCore[ ulCoreNum ] |= ulLockBit;
|
||||||
}
|
}
|
||||||
|
|
@ -252,7 +252,7 @@ static inline void vPortRecursiveLock( uint32_t ulLockNum,
|
||||||
#ifdef configASSERT
|
#ifdef configASSERT
|
||||||
configASSERT( ( ucOwnedByCore[ ulCoreNum ] & ulLockBit ) != 0 );
|
configASSERT( ( ucOwnedByCore[ ulCoreNum ] & ulLockBit ) != 0 );
|
||||||
configASSERT( ucRecursionCountByLock[ ulLockNum ] != 0 );
|
configASSERT( ucRecursionCountByLock[ ulLockNum ] != 0 );
|
||||||
#endif
|
#endif /* configASSERT */
|
||||||
|
|
||||||
if( !--ucRecursionCountByLock[ ulLockNum ] )
|
if( !--ucRecursionCountByLock[ ulLockNum ] )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue