DummyCriticalSection Class Reference

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

Inherited by ArrayAllocationBase< ActionListener *, DummyCriticalSection >, ArrayAllocationBase< ActionSet *, DummyCriticalSection >, ArrayAllocationBase< AllocatedObject *, DummyCriticalSection >, ArrayAllocationBase< AnalyticsDestination *, DummyCriticalSection >, ArrayAllocationBase< AnalyticsEvent, DummyCriticalSection >, ArrayAllocationBase< AnimatedPosition::Listener *, DummyCriticalSection >, ArrayAllocationBase< AnimationTask *, DummyCriticalSection >, ArrayAllocationBase< ApplicationCommandInfo *, DummyCriticalSection >, ArrayAllocationBase< ApplicationCommandManagerListener *, DummyCriticalSection >, ArrayAllocationBase< AttributedString::Attribute, DummyCriticalSection >, ArrayAllocationBase< AudioChannelSet, DummyCriticalSection >, ArrayAllocationBase< AudioDeviceManager::AudioDeviceSetup *, DummyCriticalSection >, ArrayAllocationBase< AudioFormat *, DummyCriticalSection >, ArrayAllocationBase< AudioIODeviceCallback *, DummyCriticalSection >, ArrayAllocationBase< AudioIODeviceType *, DummyCriticalSection >, ArrayAllocationBase< AudioIODeviceType::Listener *, DummyCriticalSection >, ArrayAllocationBase< AudioPluginFormat *, DummyCriticalSection >, ArrayAllocationBase< AudioProcessor::Bus *, DummyCriticalSection >, ArrayAllocationBase< AudioProcessor::BusProperties, DummyCriticalSection >, ArrayAllocationBase< AudioProcessorGraph::Connection *, DummyCriticalSection >, ArrayAllocationBase< AudioProcessorGraph::Node *, DummyCriticalSection >, ArrayAllocationBase< AudioProcessorListener *, DummyCriticalSection >, ArrayAllocationBase< AudioProcessorParameter *, DummyCriticalSection >, ArrayAllocationBase< AudioSource *, DummyCriticalSection >, ArrayAllocationBase< BufferedBlock *, DummyCriticalSection >, ArrayAllocationBase< Button::Listener *, DummyCriticalSection >, ArrayAllocationBase< ByteSequence, DummyCriticalSection >, ArrayAllocationBase< ChangeListener *, DummyCriticalSection >, ArrayAllocationBase< ChangeMessage *, DummyCriticalSection >, ArrayAllocationBase< ChannelInfo *, DummyCriticalSection >, ArrayAllocationBase< CodeDocument::Iterator *, DummyCriticalSection >, ArrayAllocationBase< CodeDocument::Listener *, DummyCriticalSection >, ArrayAllocationBase< CodeDocument::Position *, DummyCriticalSection >, ArrayAllocationBase< CodeDocumentLine *, DummyCriticalSection >, ArrayAllocationBase< CodeEditorComponent::ColourScheme::TokenType, DummyCriticalSection >, ArrayAllocationBase< CodeEditorLine *, DummyCriticalSection >, ArrayAllocationBase< ColourPoint, DummyCriticalSection >, ArrayAllocationBase< ColourSetting, DummyCriticalSection >, ArrayAllocationBase< ColumnInfo *, DummyCriticalSection >, ArrayAllocationBase< ComboBox *, DummyCriticalSection >, ArrayAllocationBase< ComboBox::Listener *, DummyCriticalSection >, ArrayAllocationBase< CommandMapping *, DummyCriticalSection >, ArrayAllocationBase< Component *, DummyCriticalSection >, ArrayAllocationBase< ComponentBuilder::TypeHandler *, DummyCriticalSection >, ArrayAllocationBase< ComponentPeer *, DummyCriticalSection >, ArrayAllocationBase< const PluginDescription *, DummyCriticalSection >, ArrayAllocationBase< const PopupMenu *, DummyCriticalSection >, ArrayAllocationBase< Desktop::Displays::Display, DummyCriticalSection >, ArrayAllocationBase< DirectoryContentsList::FileInfo *, DummyCriticalSection >, ArrayAllocationBase< DragImageComponent *, DummyCriticalSection >, ArrayAllocationBase< DrawableButton *, DummyCriticalSection >, ArrayAllocationBase< dsp::OversamplingEngine< SampleType > *, DummyCriticalSection >, ArrayAllocationBase< ElementType, DummyCriticalSection >, ArrayAllocationBase< ExpPtr, DummyCriticalSection >, ArrayAllocationBase< File, DummyCriticalSection >, ArrayAllocationBase< FileBrowserListener *, DummyCriticalSection >, ArrayAllocationBase< FilenameComponentListener *, DummyCriticalSection >, ArrayAllocationBase< FlexItem, DummyCriticalSection >, ArrayAllocationBase< float, DummyCriticalSection >, ArrayAllocationBase< FloatingType, DummyCriticalSection >, ArrayAllocationBase< FloatType, DummyCriticalSection >, ArrayAllocationBase< FocusChangeListener *, DummyCriticalSection >, ArrayAllocationBase< Function *, DummyCriticalSection >, ArrayAllocationBase< GlyphInfo *, DummyCriticalSection >, ArrayAllocationBase< HashEntry *, DummyCriticalSection >, ArrayAllocationBase< IIRCoefficients, DummyCriticalSection >, ArrayAllocationBase< IIRFilter *, DummyCriticalSection >, ArrayAllocationBase< ImagePixelData::Listener *, DummyCriticalSection >, ArrayAllocationBase< InAppPurchases::Download *, DummyCriticalSection >, ArrayAllocationBase< InAppPurchases::Listener *, DummyCriticalSection >, ArrayAllocationBase< int, DummyCriticalSection >, ArrayAllocationBase< Item *, DummyCriticalSection >, ArrayAllocationBase< Item, DummyCriticalSection >, ArrayAllocationBase< ItemLayoutProperties *, DummyCriticalSection >, ArrayAllocationBase< KeyPress, DummyCriticalSection >, ArrayAllocationBase< KeyPressTime *, DummyCriticalSection >, ArrayAllocationBase< KnownPluginList::PluginTree *, DummyCriticalSection >, ArrayAllocationBase< Label::Listener *, DummyCriticalSection >, ArrayAllocationBase< littlefoot::Compiler::CodeGenerator::MarkerAndAddress, DummyCriticalSection >, ArrayAllocationBase< littlefoot::NativeFunction, DummyCriticalSection >, ArrayAllocationBase< LowLevelGraphicsPostScriptRenderer::SavedState *, DummyCriticalSection >, ArrayAllocationBase< MarkerList *, DummyCriticalSection >, ArrayAllocationBase< MarkerList::Listener *, DummyCriticalSection >, ArrayAllocationBase< MarkerList::Marker *, DummyCriticalSection >, ArrayAllocationBase< MenuBarModel::Listener *, DummyCriticalSection >, ArrayAllocationBase< MidiBuffer *, DummyCriticalSection >, ArrayAllocationBase< MidiCallbackInfo, DummyCriticalSection >, ArrayAllocationBase< MidiInput *, DummyCriticalSection >, ArrayAllocationBase< MidiKeyboardStateListener *, DummyCriticalSection >, ArrayAllocationBase< MidiMessageSequence *, DummyCriticalSection >, ArrayAllocationBase< MidiMessageSequence::MidiEventHolder *, DummyCriticalSection >, ArrayAllocationBase< ModalItem *, DummyCriticalSection >, ArrayAllocationBase< MouseInactivityDetector::Listener *, DummyCriticalSection >, ArrayAllocationBase< MouseListener *, DummyCriticalSection >, ArrayAllocationBase< MPEInstrument::Listener *, DummyCriticalSection >, ArrayAllocationBase< MPENote, DummyCriticalSection >, ArrayAllocationBase< MPESynthesiserVoice *, DummyCriticalSection >, ArrayAllocationBase< MPEZone, DummyCriticalSection >, ArrayAllocationBase< MPEZoneLayout::Listener *, DummyCriticalSection >, ArrayAllocationBase< NamedValueSet::NamedValue, DummyCriticalSection >, ArrayAllocationBase< NumericType, DummyCriticalSection >, ArrayAllocationBase< OSCArgument, DummyCriticalSection >, ArrayAllocationBase< OSCBundle::Element, DummyCriticalSection >, ArrayAllocationBase< PanelHolder *, DummyCriticalSection >, ArrayAllocationBase< PluginDescription *, DummyCriticalSection >, ArrayAllocationBase< PopupMenu::Item *, DummyCriticalSection >, ArrayAllocationBase< PositionedGlyph, DummyCriticalSection >, ArrayAllocationBase< ProgressBar *, DummyCriticalSection >, ArrayAllocationBase< PushNotifications::Listener *, DummyCriticalSection >, ArrayAllocationBase< PushNotifications::Settings::Category, DummyCriticalSection >, ArrayAllocationBase< Range< int >, DummyCriticalSection >, ArrayAllocationBase< Rectangle, DummyCriticalSection >, ArrayAllocationBase< RelativePointPath::ElementBase *, DummyCriticalSection >, ArrayAllocationBase< ScrollBar::Listener *, DummyCriticalSection >, ArrayAllocationBase< SelectableItemType, DummyCriticalSection >, ArrayAllocationBase< size_t, DummyCriticalSection >, ArrayAllocationBase< StandalonePluginHolder::PluginInOuts, DummyCriticalSection >, ArrayAllocationBase< StatementPtr, DummyCriticalSection >, ArrayAllocationBase< String, DummyCriticalSection >, ArrayAllocationBase< SwatchComponent *, DummyCriticalSection >, ArrayAllocationBase< SynthesiserSound *, DummyCriticalSection >, ArrayAllocationBase< SynthesiserVoice *, DummyCriticalSection >, ArrayAllocationBase< TabInfo *, DummyCriticalSection >, ArrayAllocationBase< TableHeaderComponent::Listener *, DummyCriticalSection >, ArrayAllocationBase< TextButton *, DummyCriticalSection >, ArrayAllocationBase< TextDiff::Change, DummyCriticalSection >, ArrayAllocationBase< TextEditor *, DummyCriticalSection >, ArrayAllocationBase< TextEditor::Listener *, DummyCriticalSection >, ArrayAllocationBase< TextLayout::Glyph, DummyCriticalSection >, ArrayAllocationBase< TextLayout::Line *, DummyCriticalSection >, ArrayAllocationBase< TextLayout::Run *, DummyCriticalSection >, ArrayAllocationBase< TextPropertyComponent::Listener *, DummyCriticalSection >, ArrayAllocationBase< ThreadPoolJob *, DummyCriticalSection >, ArrayAllocationBase< ThreadPoolThread *, DummyCriticalSection >, ArrayAllocationBase< ThreadRecursionCount, DummyCriticalSection >, ArrayAllocationBase< ThumbData *, DummyCriticalSection >, ArrayAllocationBase< ThumbnailCacheEntry *, DummyCriticalSection >, ArrayAllocationBase< Timer *, DummyCriticalSection >, ArrayAllocationBase< TimeSliceClient *, DummyCriticalSection >, ArrayAllocationBase< ToolbarItemComponent *, DummyCriticalSection >, ArrayAllocationBase< TreeViewItem *, DummyCriticalSection >, ArrayAllocationBase< Type, DummyCriticalSection >, ArrayAllocationBase< uint8, DummyCriticalSection >, ArrayAllocationBase< UniformTextSection *, DummyCriticalSection >, ArrayAllocationBase< Upload *, DummyCriticalSection >, ArrayAllocationBase< Value *, DummyCriticalSection >, ArrayAllocationBase< Value::Listener *, DummyCriticalSection >, ArrayAllocationBase< ValueTree::Listener *, DummyCriticalSection >, ArrayAllocationBase< Variable, DummyCriticalSection >, ArrayAllocationBase< void *, DummyCriticalSection >, ArrayAllocationBase< WeakReference< Component >, DummyCriticalSection >, and ArrayAllocationBase< ZipEntryHolder *, 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

◆ ScopedUnlockType

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

Constructor & Destructor Documentation

◆ DummyCriticalSection()

DummyCriticalSection::DummyCriticalSection ( )
noexcept

◆ ~DummyCriticalSection()

DummyCriticalSection::~DummyCriticalSection ( )
noexcept

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: