nn::os::CriticalSection::ScopedLock Class

Header file: nn/os.h

Syntax

class ScopedLock

Description

Enters a critical section when an object is created and stays in until the scope is exited.

This class's constructor takes the reference from nn::os::CriticalSection as an argument, and executes the nn::os::CriticalSection::Enter member function to enter a critical section. The destructor executes the nn::os::CriticalSection::Leave member function to leave the critical session.

Revision History

2011/02/15
Explained the constructor and destructor.
2010/01/07
Initial version.

CONFIDENTIAL