mirror of
https://review.haiku-os.org/haiku
synced 2025-02-01 11:15:59 +01:00
937b23cb21
as a mutex, but allocates its semaphore lazily. This comes at the cost of an additional atomic_add() when the semaphore has actually to be acquired, but saves the semaphore creation completely in single-threaded programs and in any program when there's no lock contention. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34339 a95241bf-73f2-0310-859d-f6bbb57e9c96