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

Syntax

#include <nn/os.h>

bool TryAcquire();

Arguments

None.

Return Values

Returns true if the counter was decremented. Returns false if the counter could not be decremented because it had the value 0.

Description

Tries to decrement the counter value by one.

If the counter was already 0, this function returns without decrementing it.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL