openshot-audio  0.1.4
Classes | Public Types | Public Member Functions | List of all members
DummyCriticalSection Class Reference

#include <juce_CriticalSection.h>

Inheritance diagram for DummyCriticalSection:
ArrayAllocationBase< float, DummyCriticalSection >

Classes

struct  ScopedLockType
 

Public Types

typedef ScopedLockType ScopedUnlockType
 

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

◆ ScopedUnlockType

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

Constructor & Destructor Documentation

◆ DummyCriticalSection()

DummyCriticalSection::DummyCriticalSection ( )
inlinenoexcept

◆ ~DummyCriticalSection()

DummyCriticalSection::~DummyCriticalSection ( )
inlinenoexcept

Member Function Documentation

◆ enter()

void DummyCriticalSection::enter ( ) const
inlinenoexcept

◆ exit()

void DummyCriticalSection::exit ( ) const
inlinenoexcept

◆ tryEnter()

bool DummyCriticalSection::tryEnter ( ) const
inlinenoexcept

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