nn::os::Semaphore::TryAcquire Member Function

Syntax

#include <nn/os.h>

bool TryAcquire(
     nn::fnd::TimeSpan timeout
);

Arguments

Name Description
in timeout Specifies the timeout period. Specifying 0 causes control to return immediately.

Return Values

Returns whether acquisition succeeded within the timeout period.

Description

Tries to acquire a semaphore (perform a "P operation").

If successful, the counter is decremented by one.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL