nn::os::Semaphore::Release Member Function

Syntax

#include <nn/os.h>

s32 Release(
     s32 releaseCount = 1
);

Arguments

Name Description
in releaseCount Specifies how much to increase the counter by.

Return Values

Returns the counter value before releaseCount was added to it.

Description

Releases a semaphore (performs a "V operation") and increases the counter value.

If there are threads that are blocked and waiting on the semaphore, the highest-priority thread is unblocked. If there are multiple threads with the highest priority, one of them is unblocked with each release.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL