mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
ListenerList: Replace ListenerList with LightweightListenerList in select places
This commit is contained in:
parent
2e6ee49cfa
commit
059b667af2
4 changed files with 5 additions and 5 deletions
|
|
@ -71,7 +71,7 @@ private:
|
|||
template <typename Ptr>
|
||||
auto createCheckedReference (Ptr* ptrIn)
|
||||
{
|
||||
return std::shared_ptr<CheckedReference<Ptr>> { new CheckedReference<Ptr> (ptrIn) };
|
||||
return std::make_shared<CheckedReference<Ptr>> (ptrIn);
|
||||
}
|
||||
|
||||
class MidiInput::Pimpl
|
||||
|
|
@ -1251,7 +1251,7 @@ private:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
ListenerList<Listener> listeners;
|
||||
ThreadSafeListenerList<Listener> listeners;
|
||||
HashMap<String, DeviceInfo> devices;
|
||||
CriticalSection deviceChanges;
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ public:
|
|||
|
||||
private:
|
||||
std::list<Callback> callbacks;
|
||||
ListenerList<Callback> listeners;
|
||||
LightweightListenerList<Callback> listeners;
|
||||
};
|
||||
|
||||
} // namespace juce::detail
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ public:
|
|||
|
||||
private:
|
||||
friend void notifyAllocationHooksForThread();
|
||||
ListenerList<Listener> listenerList;
|
||||
LightweightListenerList<Listener> listenerList;
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -582,7 +582,7 @@ private:
|
|||
|
||||
//==============================================================================
|
||||
ListenerList<OSCReceiver::Listener<OSCReceiver::MessageLoopCallback>> listeners;
|
||||
ListenerList<OSCReceiver::Listener<OSCReceiver::RealtimeCallback>> realtimeListeners;
|
||||
LightweightListenerList<OSCReceiver::Listener<OSCReceiver::RealtimeCallback>> realtimeListeners;
|
||||
|
||||
Array<std::pair<OSCAddress, OSCReceiver::ListenerWithOSCAddress<OSCReceiver::MessageLoopCallback>*>> listenersWithAddress;
|
||||
Array<std::pair<OSCAddress, OSCReceiver::ListenerWithOSCAddress<OSCReceiver::RealtimeCallback>*>> realtimeListenersWithAddress;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue