nn::os::LightEvent::LightEvent Constructor

Syntax

#include <nn/os.h>

explicit LightEvent(
     bool isManualReset
);

Parameters

Name Description
in isManualReset Specify true for a manually resetting event, or false for an automatically resetting event.

Description

Constructor.

Constructor that performs initialization.

You do not need to call Initialize separately.

For automatically resetting events, the flag is cleared if any of the threads are woken up by having its flag set. As a result, only one thread is woken up each time the flag is set, even if multiple threads are waiting.

For manually resetting events, the flag is never cleared automatically. As a result, if multiple threads are waiting, all threads are woken up each time the flag is set.


CONFIDENTIAL