nn::os::LightSemaphore::TryAcquire Member Function#include <nn/os.h>
bool TryAcquire(
fnd::TimeSpan timeout
);
| Name | Description | |
|---|---|---|
| in | timeout | Specifies the timeout period. |
true if decremented. Returns false if process timed out without decrementing. Tries to decrement the counter value by one.
If the counter was already 0, this function waits for it to become 1 or greater. The maximum wait time is specified by timeout.
If the timeout elapses and the counter has not become 1 or more, this function returns without decrementing the counter.
CONFIDENTIAL