nn::os::Semaphore::Semaphore Constructor

Syntax

#include <nn/os.h>
Semaphore(
     s32 initialCount,
     s32 maxCount
);

Arguments

Name Description
in initialCount Count value for the semaphore immediately after creation.
in maxCount Maximum count value that this semaphore can take.

Description

Constructs and initializes a semaphore.

Two constructors are provided: one performs initialization, and the other does not. You must call Initialize separately when you use the non-initializing constructor.


CONFIDENTIAL