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...

Inherited by ArrayBase< ActionListener *, DummyCriticalSection >, ArrayBase< ActionSet *, DummyCriticalSection >, ArrayBase< AnalyticsDestination *, DummyCriticalSection >, ArrayBase< AnalyticsEvent, DummyCriticalSection >, ArrayBase< AnimatedPosition::Listener *, DummyCriticalSection >, ArrayBase< AnimationTask *, DummyCriticalSection >, ArrayBase< ApplicationCommandInfo *, DummyCriticalSection >, ArrayBase< ApplicationCommandManagerListener *, DummyCriticalSection >, ArrayBase< ArgumentList::Argument, DummyCriticalSection >, ArrayBase< AttributedString::Attribute, DummyCriticalSection >, ArrayBase< AudioChannelSet, DummyCriticalSection >, ArrayBase< AudioDeviceManager::AudioDeviceSetup *, DummyCriticalSection >, ArrayBase< AudioFormat *, DummyCriticalSection >, ArrayBase< AudioIODeviceCallback *, DummyCriticalSection >, ArrayBase< AudioIODeviceType *, DummyCriticalSection >, ArrayBase< AudioIODeviceType::Listener *, DummyCriticalSection >, ArrayBase< AudioPluginFormat *, DummyCriticalSection >, ArrayBase< AudioProcessor::Bus *, DummyCriticalSection >, ArrayBase< AudioProcessor::BusProperties, DummyCriticalSection >, ArrayBase< AudioProcessorGraph::Node *, DummyCriticalSection >, ArrayBase< AudioProcessorListener *, DummyCriticalSection >, ArrayBase< AudioProcessorParameter *, DummyCriticalSection >, ArrayBase< AudioProcessorParameter::Listener *, DummyCriticalSection >, ArrayBase< AudioProcessorParameterGroup::AudioProcessorParameterNode *, DummyCriticalSection >, ArrayBase< AudioSource *, DummyCriticalSection >, ArrayBase< Block *, DummyCriticalSection >, ArrayBase< BlockDeviceConnection, DummyCriticalSection >, ArrayBase< BufferedBlock *, DummyCriticalSection >, ArrayBase< Button::Listener *, DummyCriticalSection >, ArrayBase< ByteSequence, DummyCriticalSection >, ArrayBase< ChangeListener *, DummyCriticalSection >, ArrayBase< ChangeMessage *, DummyCriticalSection >, ArrayBase< ChannelInfo *, DummyCriticalSection >, ArrayBase< CodeDocument::Iterator, DummyCriticalSection >, ArrayBase< CodeDocument::Listener *, DummyCriticalSection >, ArrayBase< CodeDocument::Position *, DummyCriticalSection >, ArrayBase< CodeDocumentLine *, DummyCriticalSection >, ArrayBase< CodeEditorComponent::ColourScheme::TokenType, DummyCriticalSection >, ArrayBase< CodeEditorLine *, DummyCriticalSection >, ArrayBase< ColourPoint, DummyCriticalSection >, ArrayBase< ColourSetting, DummyCriticalSection >, ArrayBase< ColumnInfo *, DummyCriticalSection >, ArrayBase< ComboBox *, DummyCriticalSection >, ArrayBase< ComboBox::Listener *, DummyCriticalSection >, ArrayBase< CommandMapping *, DummyCriticalSection >, ArrayBase< Component *, DummyCriticalSection >, ArrayBase< ComponentBuilder::TypeHandler *, DummyCriticalSection >, ArrayBase< ComponentPeer *, DummyCriticalSection >, ArrayBase< ComponentPeer::ScaleFactorListener *, DummyCriticalSection >, ArrayBase< Connection, DummyCriticalSection >, ArrayBase< const PopupMenu *, DummyCriticalSection >, ArrayBase< ControlButton::Listener *, DummyCriticalSection >, ArrayBase< DirectoryContentsList::FileInfo *, DummyCriticalSection >, ArrayBase< Displays::Display, DummyCriticalSection >, ArrayBase< double, DummyCriticalSection >, ArrayBase< DragImageComponent *, DummyCriticalSection >, ArrayBase< DrawableButton *, DummyCriticalSection >, ArrayBase< ElementType, DummyCriticalSection >, ArrayBase< File, DummyCriticalSection >, ArrayBase< FileBrowserListener *, DummyCriticalSection >, ArrayBase< FilenameComponentListener *, DummyCriticalSection >, ArrayBase< FlexItem, DummyCriticalSection >, ArrayBase< float, DummyCriticalSection >, ArrayBase< FloatingType, DummyCriticalSection >, ArrayBase< FloatType, DummyCriticalSection >, ArrayBase< FocusChangeListener *, DummyCriticalSection >, ArrayBase< GlyphInfo *, DummyCriticalSection >, ArrayBase< Grid::TrackInfo, DummyCriticalSection >, ArrayBase< GridItem, DummyCriticalSection >, ArrayBase< HashEntry *, DummyCriticalSection >, ArrayBase< IIRCoefficients *, DummyCriticalSection >, ArrayBase< IIRFilter *, DummyCriticalSection >, ArrayBase< ImagePixelData::Listener *, DummyCriticalSection >, ArrayBase< InAppPurchases::Download *, DummyCriticalSection >, ArrayBase< int, DummyCriticalSection >, ArrayBase< Item *, DummyCriticalSection >, ArrayBase< Item, DummyCriticalSection >, ArrayBase< ItemLayoutProperties *, DummyCriticalSection >, ArrayBase< KeyPress, DummyCriticalSection >, ArrayBase< KeyPressTime *, DummyCriticalSection >, ArrayBase< KnownPluginList::PluginTree *, DummyCriticalSection >, ArrayBase< Label::Listener *, DummyCriticalSection >, ArrayBase< LowLevelGraphicsPostScriptRenderer::SavedState *, DummyCriticalSection >, ArrayBase< MarkerList *, DummyCriticalSection >, ArrayBase< MarkerList::Listener *, DummyCriticalSection >, ArrayBase< MarkerList::Marker *, DummyCriticalSection >, ArrayBase< MenuBarModel::Listener *, DummyCriticalSection >, ArrayBase< MidiCallbackInfo, DummyCriticalSection >, ArrayBase< MidiDeviceInfo, DummyCriticalSection >, ArrayBase< MidiKeyboardState::Listener *, DummyCriticalSection >, ArrayBase< MidiMessageSequence *, DummyCriticalSection >, ArrayBase< MidiMessageSequence::MidiEventHolder *, DummyCriticalSection >, ArrayBase< ModalItem *, DummyCriticalSection >, ArrayBase< MouseInactivityDetector::Listener *, DummyCriticalSection >, ArrayBase< MouseListener *, DummyCriticalSection >, ArrayBase< MPEInstrument::Listener *, DummyCriticalSection >, ArrayBase< MPENote, DummyCriticalSection >, ArrayBase< MPESynthesiserVoice *, DummyCriticalSection >, ArrayBase< MPEZoneLayout::Listener *, DummyCriticalSection >, ArrayBase< NamedValueSet::NamedValue, DummyCriticalSection >, ArrayBase< NumericType, DummyCriticalSection >, ArrayBase< OSCArgument, DummyCriticalSection >, ArrayBase< OSCBundle::Element, DummyCriticalSection >, ArrayBase< OversamplingStage *, DummyCriticalSection >, ArrayBase< PanelHolder *, DummyCriticalSection >, ArrayBase< PluginDescription, DummyCriticalSection >, ArrayBase< PopupMenu::Item, DummyCriticalSection >, ArrayBase< PositionedGlyph, DummyCriticalSection >, ArrayBase< ProgressBar *, DummyCriticalSection >, ArrayBase< PushNotifications::Listener *, DummyCriticalSection >, ArrayBase< PushNotifications::Notification::Action, DummyCriticalSection >, ArrayBase< PushNotifications::Settings::Category, DummyCriticalSection >, ArrayBase< Range< int >, DummyCriticalSection >, ArrayBase< Range< Type >, DummyCriticalSection >, ArrayBase< Rectangle, DummyCriticalSection >, ArrayBase< RelativePointPath::ElementBase *, DummyCriticalSection >, ArrayBase< Row, DummyCriticalSection >, ArrayBase< ScrollBar::Listener *, DummyCriticalSection >, ArrayBase< SelectableItemType, DummyCriticalSection >, ArrayBase< size_t, DummyCriticalSection >, ArrayBase< StandalonePluginHolder::PluginInOuts, DummyCriticalSection >, ArrayBase< String, DummyCriticalSection >, ArrayBase< SwatchComponent *, DummyCriticalSection >, ArrayBase< SynthesiserSound *, DummyCriticalSection >, ArrayBase< SynthesiserVoice *, DummyCriticalSection >, ArrayBase< TabInfo *, DummyCriticalSection >, ArrayBase< TableHeaderComponent::Listener *, DummyCriticalSection >, ArrayBase< TextButton *, DummyCriticalSection >, ArrayBase< TextDiff::Change, DummyCriticalSection >, ArrayBase< TextEditor *, DummyCriticalSection >, ArrayBase< TextEditor::Listener *, DummyCriticalSection >, ArrayBase< TextLayout::Glyph, DummyCriticalSection >, ArrayBase< TextLayout::Line *, DummyCriticalSection >, ArrayBase< TextLayout::Run *, DummyCriticalSection >, ArrayBase< TextPropertyComponent::Listener *, DummyCriticalSection >, ArrayBase< ThreadPoolJob *, DummyCriticalSection >, ArrayBase< ThreadPoolThread *, DummyCriticalSection >, ArrayBase< ThreadRecursionCount, DummyCriticalSection >, ArrayBase< ThumbData *, DummyCriticalSection >, ArrayBase< ThumbnailCacheEntry *, DummyCriticalSection >, ArrayBase< Timer *, DummyCriticalSection >, ArrayBase< TimeSliceClient *, DummyCriticalSection >, ArrayBase< ToggleButton *, DummyCriticalSection >, ArrayBase< ToolbarItemComponent *, DummyCriticalSection >, ArrayBase< TopologySource::Listener *, DummyCriticalSection >, ArrayBase< TouchList::TouchEntry, DummyCriticalSection >, ArrayBase< TouchSurface::Listener *, DummyCriticalSection >, ArrayBase< TreeViewItem *, DummyCriticalSection >, ArrayBase< Type, DummyCriticalSection >, ArrayBase< uint8, DummyCriticalSection >, ArrayBase< UniformTextSection *, DummyCriticalSection >, ArrayBase< Upload *, DummyCriticalSection >, ArrayBase< URL, DummyCriticalSection >, ArrayBase< Value *, DummyCriticalSection >, ArrayBase< Value::Listener *, DummyCriticalSection >, ArrayBase< ValueTree::Listener *, DummyCriticalSection >, ArrayBase< WeakReference< Component >, DummyCriticalSection >, and ArrayBase< ZipEntryHolder *, DummyCriticalSection >.

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

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: