JUCE
Classes | Public Types | Public Member Functions | List of all members
DummyCriticalSection Class Reference

A class that can be used in place of a real CriticalSection object, but which doesn't perform any locking. More...

+ Inheritance diagram for DummyCriticalSection:

Classes

struct  ScopedLockType
 A dummy scoped-lock type to use with a dummy critical section. More...
 

Public Types

typedef ScopedLockType ScopedUnlockType
 A dummy scoped-unlocker type to use with a dummy critical section. More...
 

Public Member Functions

 DummyCriticalSection () noexcept
 
 ~DummyCriticalSection () noexcept
 
void enter () const noexcept
 
bool tryEnter () const noexcept
 
void exit () const noexcept
 

Detailed Description

A class that can be used in place of a real CriticalSection object, but which doesn't perform any locking.

This is currently used by some templated classes, and most compilers should manage to optimise it out of existence.

See also
CriticalSection, Array, OwnedArray, ReferenceCountedArray

Member Typedef Documentation

A dummy scoped-unlocker type to use with a dummy critical section.

Constructor & Destructor Documentation

DummyCriticalSection::DummyCriticalSection ( )
noexcept
DummyCriticalSection::~DummyCriticalSection ( )
noexcept

Member Function Documentation

void DummyCriticalSection::enter ( ) const
noexcept
bool DummyCriticalSection::tryEnter ( ) const
noexcept
void DummyCriticalSection::exit ( ) const
noexcept

The documentation for this class was generated from the following file: