If the count of this semaphore is positive, atomically decrement the count and return 0; otherwise, return a non‐zero value with no effect on the count.
If the count of this semaphore is positive, atomically decrement the count and return 0; otherwise, return a non‐zero value with no effect on the count.