nn::os::Semaphore::TryAcquire Member Function#include <nn/os.h>
bool TryAcquire(
nn::fnd::TimeSpan timeout
);
| Name | Description | |
|---|---|---|
| in | timeout | Specifies the timeout period. Specifying 0 causes control to return immediately. |
Tries to acquire a semaphore (perform a "P operation").
If successful, the counter is decremented by one.
CONFIDENTIAL