mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 10:47:14 +01:00
171cfa834d
This can be used to replace mutex_trylock/mutex_unlock pairs. Once the locker has been created, the success of the locking attempt needs to be checked via locker.IsLocked(). Change-Id: Iba4b4ce21cac5059a3577a84a6eebe28d2cc4058 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8179 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com> Reviewed-by: waddlesplash <waddlesplash@gmail.com>