JUCE: DummyCriticalSection Class Reference

JUCE

Classes | Public Types | Public Member Functions | List of all members
DummyCriticalSection Class Reference
juce_core » threads

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

`#include <juce_CriticalSection.h>`

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

## Public Types
using | ScopedUnlockType = ScopedLockType
| A dummy scoped-unlocker type to use with a dummy critical section. More...

## Public Member Functions
| DummyCriticalSection ()=default
| ~DummyCriticalSection ()=default
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

using DummyCriticalSection::ScopedUnlockType = ScopedLockType

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

## Constructor & Destructor Documentation

## ◆ DummyCriticalSection()

DummyCriticalSection::DummyCriticalSection | ( |  | ) |
| default

## ◆ ~DummyCriticalSection()

DummyCriticalSection::~DummyCriticalSection | ( |  | ) |
| default

## Member Function Documentation

## ◆ enter()

void DummyCriticalSection::enter | ( |  | ) | const
| noexcept

## ◆ tryEnter()

bool DummyCriticalSection::tryEnter | ( |  | ) | const
| noexcept

## ◆ exit()

void DummyCriticalSection::exit | ( |  | ) | const
| noexcept

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

- juce_CriticalSection.h