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 <[email protected]> Reviewed-by: Jérôme Duval <[email protected]> Reviewed-by: waddlesplash <[email protected]>