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>
Inherited by ArrayBase< ARAAudioModificationListener *, DummyCriticalSection >, ArrayBase< ARAAudioSourceListener *, DummyCriticalSection >, ArrayBase< ARADocumentListener *, DummyCriticalSection >, ArrayBase< ARAMusicalContextListener *, DummyCriticalSection >, ArrayBase< ARAPlaybackRegionListener *, DummyCriticalSection >, ArrayBase< ARARegionSequenceListener *, DummyCriticalSection >, ArrayBase< ARAEditorView::Listener *, DummyCriticalSection >, ArrayBase< ListenerType *, DummyCriticalSection >, ArrayBase< ActionListener *, DummyCriticalSection >, ArrayBase< TextButton *, DummyCriticalSection >, ArrayBase< TextEditor *, DummyCriticalSection >, ArrayBase< ComboBox *, DummyCriticalSection >, ArrayBase< ProgressBar *, DummyCriticalSection >, ArrayBase< Component *, DummyCriticalSection >, ArrayBase< AnalyticsDestination *, DummyCriticalSection >, ArrayBase< AnimatedPosition::Listener *, DummyCriticalSection >, ArrayBase< KeyPress, DummyCriticalSection >, ArrayBase< ApplicationCommandInfo *, DummyCriticalSection >, ArrayBase< ApplicationCommandManagerListener *, DummyCriticalSection >, ArrayBase< ArgumentList::Argument, DummyCriticalSection >, ArrayBase< ElementType, DummyCriticalSection >, ArrayBase< AttributedString::Attribute, DummyCriticalSection >, ArrayBase< int, DummyCriticalSection >, ArrayBase< File, DummyCriticalSection >, ArrayBase< AudioIODeviceType *, DummyCriticalSection >, ArrayBase< AudioDeviceManager::AudioDeviceSetup *, DummyCriticalSection >, ArrayBase< AudioIODeviceCallback *, DummyCriticalSection >, ArrayBase< MidiDeviceInfo, DummyCriticalSection >, ArrayBase< MidiCallbackInfo, DummyCriticalSection >, ArrayBase< AudioFormat *, DummyCriticalSection >, ArrayBase< AudioIODeviceType::Listener *, DummyCriticalSection >, ArrayBase< AudioPluginFormat *, DummyCriticalSection >, ArrayBase< AudioProcessorListener *, DummyCriticalSection >, ArrayBase< AudioProcessor::Bus *, DummyCriticalSection >, ArrayBase< AudioProcessorParameter *, DummyCriticalSection >, ArrayBase< AudioChannelSet, DummyCriticalSection >, ArrayBase< AudioProcessor::BusProperties, DummyCriticalSection >, ArrayBase< AudioProcessorParameter::Listener *, DummyCriticalSection >, ArrayBase< AudioProcessorParameterGroup::AudioProcessorParameterNode *, DummyCriticalSection >, ArrayBase< ThumbData *, DummyCriticalSection >, ArrayBase< ThumbnailCacheEntry *, DummyCriticalSection >, ArrayBase< ChannelInfo *, DummyCriticalSection >, ArrayBase< BufferedBlock *, DummyCriticalSection >, ArrayBase< Row, DummyCriticalSection >, ArrayBase< Button::Listener *, DummyCriticalSection >, ArrayBase< ChangeListener *, DummyCriticalSection >, ArrayBase< CodeDocumentLine *, DummyCriticalSection >, ArrayBase< CodeDocument::Position *, DummyCriticalSection >, ArrayBase< CodeDocument::Listener *, DummyCriticalSection >, ArrayBase< CodeEditorLine *, DummyCriticalSection >, ArrayBase< CodeDocument::Iterator, DummyCriticalSection >, ArrayBase< CodeEditorComponent::ColourScheme::TokenType, DummyCriticalSection >, ArrayBase< ColourPoint, DummyCriticalSection >, ArrayBase< SwatchComponent *, DummyCriticalSection >, ArrayBase< ComboBox::Listener *, DummyCriticalSection >, ArrayBase< AnimationTask *, DummyCriticalSection >, ArrayBase< ComponentBuilder::TypeHandler *, DummyCriticalSection >, ArrayBase< ComponentPeer::ScaleFactorListener *, DummyCriticalSection >, ArrayBase< ComponentPeer::VBlankListener *, DummyCriticalSection >, ArrayBase< PanelHolder *, DummyCriticalSection >, ArrayBase< MouseListener *, DummyCriticalSection >, ArrayBase< FocusChangeListener *, DummyCriticalSection >, ArrayBase< DarkModeSettingListener *, DummyCriticalSection >, ArrayBase< ComponentPeer *, DummyCriticalSection >, ArrayBase< FileBrowserListener *, DummyCriticalSection >, ArrayBase< DirectoryContentsList::FileInfo *, DummyCriticalSection >, ArrayBase< Displays::Display, DummyCriticalSection >, ArrayBase< DragImageComponent *, DummyCriticalSection >, ArrayBase< float, DummyCriticalSection >, ArrayBase< URL, DummyCriticalSection >, ArrayBase< FilenameComponentListener *, DummyCriticalSection >, ArrayBase< FlexItem, DummyCriticalSection >, ArrayBase< PositionedGlyph, DummyCriticalSection >, ArrayBase< Grid::TrackInfo, DummyCriticalSection >, ArrayBase< GridItem, DummyCriticalSection >, ArrayBase< HashEntry *, DummyCriticalSection >, ArrayBase< IIRFilter *, DummyCriticalSection >, ArrayBase< ImagePixelData::Listener *, DummyCriticalSection >, ArrayBase< InAppPurchases::Listener *, DummyCriticalSection >, ArrayBase< InAppPurchases::Download *, DummyCriticalSection >, ArrayBase< CommandMapping *, DummyCriticalSection >, ArrayBase< KeyPressTime *, DummyCriticalSection >, ArrayBase< PluginDescription, DummyCriticalSection >, ArrayBase< KnownPluginList::PluginTree *, DummyCriticalSection >, ArrayBase< Label::Listener *, DummyCriticalSection >, ArrayBase< SelectableItemType, DummyCriticalSection >, ArrayBase< ListenerClass *, DummyCriticalSection >, ArrayBase< Range< int >, DummyCriticalSection >, ArrayBase< ColourSetting, DummyCriticalSection >, ArrayBase< MPENote, DummyCriticalSection >, ArrayBase< MPEInstrument::Listener *, DummyCriticalSection >, ArrayBase< MPESynthesiserVoice *, DummyCriticalSection >, ArrayBase< MPEZoneLayout::Listener *, DummyCriticalSection >, ArrayBase< MarkerList::Marker *, DummyCriticalSection >, ArrayBase< MarkerList::Listener *, DummyCriticalSection >, ArrayBase< MenuBarModel::Listener *, DummyCriticalSection >, ArrayBase< uint8, DummyCriticalSection >, ArrayBase< MidiMessageSequence *, DummyCriticalSection >, ArrayBase< MidiKeyboardState::Listener *, DummyCriticalSection >, ArrayBase< MidiMessageSequence::MidiEventHolder *, DummyCriticalSection >, ArrayBase< AudioSource *, DummyCriticalSection >, ArrayBase< ModalItem *, DummyCriticalSection >, ArrayBase< MouseInactivityDetector::Listener *, DummyCriticalSection >, ArrayBase< ToggleButton *, DummyCriticalSection >, ArrayBase< Timer *, DummyCriticalSection >, ArrayBase< NamedValueSet::NamedValue, DummyCriticalSection >, ArrayBase< OSCBundle::Element, DummyCriticalSection >, ArrayBase< OSCArgument, DummyCriticalSection >, ArrayBase< ObjectClass *, DummyCriticalSection >, ArrayBase< PopupMenu::Item, DummyCriticalSection >, ArrayBase< const PopupMenu *, DummyCriticalSection >, ArrayBase< DrawableButton *, DummyCriticalSection >, ArrayBase< PushNotifications::Listener *, DummyCriticalSection >, ArrayBase< PushNotifications::Notification::Action, DummyCriticalSection >, ArrayBase< PushNotifications::Settings::Category, DummyCriticalSection >, ArrayBase< ThreadRecursionCount, DummyCriticalSection >, ArrayBase< Rectangle, DummyCriticalSection >, ArrayBase< MarkerList *, DummyCriticalSection >, ArrayBase< RelativePointPath::ElementBase *, DummyCriticalSection >, ArrayBase< ScrollBar::Listener *, DummyCriticalSection >, ArrayBase< Range< Type >, DummyCriticalSection >, ArrayBase< StandalonePluginHolder::PluginInOuts, DummyCriticalSection >, ArrayBase< ItemLayoutProperties *, DummyCriticalSection >, ArrayBase< Item, DummyCriticalSection >, ArrayBase< String, DummyCriticalSection >, ArrayBase< SynthesiserVoice *, DummyCriticalSection >, ArrayBase< SynthesiserSound *, DummyCriticalSection >, ArrayBase< TabInfo *, DummyCriticalSection >, ArrayBase< WeakReference< Component >, DummyCriticalSection >, ArrayBase< ColumnInfo *, DummyCriticalSection >, ArrayBase< TableHeaderComponent::Listener *, DummyCriticalSection >, ArrayBase< TextDiff::Change, DummyCriticalSection >, ArrayBase< UniformTextSection *, DummyCriticalSection >, ArrayBase< TextEditor::Listener *, DummyCriticalSection >, ArrayBase< TextLayout::Line *, DummyCriticalSection >, ArrayBase< TextLayout::Run *, DummyCriticalSection >, ArrayBase< TextLayout::Glyph, DummyCriticalSection >, ArrayBase< TextPropertyComponent::Listener *, DummyCriticalSection >, ArrayBase< Thread::Listener *, DummyCriticalSection >, ArrayBase< ThreadPoolJob *, DummyCriticalSection >, ArrayBase< ThreadPoolThread *, DummyCriticalSection >, ArrayBase< AnalyticsEvent, DummyCriticalSection >, ArrayBase< TimeSliceClient *, DummyCriticalSection >, ArrayBase< ToolbarItemComponent *, DummyCriticalSection >, ArrayBase< TreeViewItem *, DummyCriticalSection >, ArrayBase< Upload *, DummyCriticalSection >, ArrayBase< ActionSet *, DummyCriticalSection >, ArrayBase< Value::Listener *, DummyCriticalSection >, ArrayBase< Value *, DummyCriticalSection >, ArrayBase< ValueTree::Listener *, DummyCriticalSection >, ArrayBase< WebViewLifetimeListener *, DummyCriticalSection >, ArrayBase< WebComboBoxRelay::Listener *, DummyCriticalSection >, ArrayBase< WebSliderRelay::Listener *, DummyCriticalSection >, ArrayBase< WebToggleButtonRelay::Listener *, DummyCriticalSection >, ArrayBase< ZipEntryHolder *, DummyCriticalSection >, ArrayBase< Item *, DummyCriticalSection >, ArrayBase< NumericType, DummyCriticalSection >, ArrayBase< IIRCoefficients *, DummyCriticalSection >, ArrayBase< double, DummyCriticalSection >, ArrayBase< SampleType, DummyCriticalSection >, ArrayBase< FloatType, DummyCriticalSection >, ArrayBase< size_t, DummyCriticalSection >, ArrayBase< OversamplingStage *, DummyCriticalSection >, ArrayBase< dsp::FirstOrderTPTFilter< SampleType > *, DummyCriticalSection >, and ArrayBase< FloatingType, DummyCriticalSection >.
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
◆ ScopedUnlockType
A dummy scoped-unlocker type to use with a dummy critical section.
◆ DummyCriticalSection()
DummyCriticalSection::DummyCriticalSection |
( |
| ) |
|
|
default |
◆ ~DummyCriticalSection()
DummyCriticalSection::~DummyCriticalSection |
( |
| ) |
|
|
default |
◆ 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: