Home
last modified time | relevance | path

Searched hist:"86822 f24857915bc8bc21ac0ffb86be69d5c966d" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/include/lib/
H A Dspinlock.h86822f24857915bc8bc21ac0ffb86be69d5c966d Thu May 15 19:55:29 UTC 2025 Manish V Badarkhe <Manish.Badarkhe@arm.com> feat(locks): add non-blocking spinlock_try() API

Add a non-blocking `spin_trylock()` function to the existing spinlock
implementation. This API attempts to acquire the lock and returns `1`
on success or `0` if the lock is already held. It enables conditional
locking scenarios where blocking is undesirable.

Change-Id: I9483206952d1a34dc245ebf69e80c3645b658946
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>