nn::os::LightSemaphore::TryAcquire Member Function

Syntax

#include <nn/os.h>

bool TryAcquire(
     fnd::TimeSpan timeout
);

Parameters

Name Description
in timeout Specifies the timeout period.

Return Values

Returns true if decremented. Returns false if process timed out without decrementing.

Description

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.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL