nlib
CriticalSection.h File Reference

Implements mutex, reentrant timeout mutex, and reentrant mutex. More...

#include "nn/nlib/Config.h"
#include "nn/nlib/Swap.h"

Go to the source code of this file.

Classes

class  nn::nlib::threading::SimpleCriticalSection
 Simplest critical section. Not reentrant. More...
 
class  nn::nlib::threading::CriticalSection
 Reentrant mutex. More...
 
class  nn::nlib::threading::TimedCriticalSection
 Critical section that can timeout in reentrant. More...
 
struct  nn::nlib::threading::AdoptLockType
 Used in ScopedLock and UniqueLock by tag type. More...
 
struct  nn::nlib::threading::TryToLockType
 Used in ScopedLock and UniqueLock by tag type. More...
 
struct  nn::nlib::threading::DeferLockType
 Used in ScopedLock and UniqueLock by tag type. More...
 
class  nn::nlib::threading::ScopedLock< T >
 Wraps objects like CriticalSection. Locks with a constructor, and unlocks with a destructor. More...
 
class  nn::nlib::threading::UniqueLock< T >
 Class to wrap objects like CriticalSection. More...
 

Namespaces

 nn::nlib
 Implements stream-related classes usually commonly used, various containers, and other gadget classes. nlib_ns is an alias.
 
 nn::nlib::threading
 Unicode related functionality is implemented.
 

Variables

constexpr const AdoptLockType nn::nlib::threading::adoptLock = {}
 An AdoptLockType-type value.
 
constexpr const TryToLockType nn::nlib::threading::tryToLock = {}
 A TryToLockType-type value.
 
constexpr const DeferLockType nn::nlib::threading::deferLock = {}
 A DeferLockType-type value.
 

Detailed Description

Implements mutex, reentrant timeout mutex, and reentrant mutex.

Definition in file CriticalSection.h.