nlib
|
Wraps objects like CriticalSection
. Locks with a constructor, and unlocks with a destructor.
More...
#include "nn/nlib/threading/CriticalSection.h"
Public Types | |
typedef T | mutex_type |
T. | |
typedef mutex_type::native_handle_type | native_handle_type |
mutex_type::native_handle_type . | |
Public Member Functions | |
ScopedLock (mutex_type &m) NLIB_LOCK_FUNC(m_Lock) | |
Locks objects like CriticalSection (calls lock ). More... | |
ScopedLock (mutex_type &m, AdoptLockType) noexcept NLIB_LOCK_FUNC(m_Lock) | |
Assumes an object like CriticalSection is already locked, and initializes the object without locking it. Unlocked in the destructor. More... | |
~ScopedLock () noexcept NLIB_UNLOCK_FUNC(m_Lock) | |
Unlocks objects like CriticalSection (calls unlock ). | |
native_handle_type | native_handle () |
Returns an implementation-specific handle representing a lock. | |
Wraps objects like CriticalSection
. Locks with a constructor, and unlocks with a destructor.
T | Classes such as CriticalSection . |
Definition at line 213 of file CriticalSection.h.
|
inlineexplicit |
Locks objects like CriticalSection
(calls lock
).
[in] | rhs | Objects such as CriticalSection . |
Definition at line 217 of file CriticalSection.h.
|
inlinenoexcept |
Assumes an object like CriticalSection
is already locked, and initializes the object without locking it. Unlocked in the destructor.
[in] | rhs | Objects such as CriticalSection . |
CriticalSection
have been locked. Definition at line 220 of file CriticalSection.h.
© 2013, 2014, 2015 Nintendo Co., Ltd. All rights reserved.