This commit is contained in:
Old-Ding 2026-08-27 02:51:20 -07:00 • committed by GitHub
commit 9cbf7e4c47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -237,6 +237,11 @@ static inline void vPortRecursiveLock( BaseType_t xCoreID,
} }
spin_lock_unsafe_blocking(pxSpinLock); spin_lock_unsafe_blocking(pxSpinLock);
} }
else
{
/* spin_try_lock_unsafe() does not provide acquire ordering on the fast path. */
__mem_fence_acquire();
}
configASSERT( ucRecursionCountByLock[ ulLockNum ] == 0 ); configASSERT( ucRecursionCountByLock[ ulLockNum ] == 0 );
ucRecursionCountByLock[ ulLockNum ] = 1; ucRecursionCountByLock[ ulLockNum ] = 1;
ucOwnedByCore[ xCoreID ][ ulLockNum ] = 1; ucOwnedByCore[ xCoreID ][ ulLockNum ] = 1;