26static SpinLock deletedAtShutdownLock;
28static Array<DeletedAtShutdown*>& getDeletedAtShutdownObjects()
30 static Array<DeletedAtShutdown*> objects;
37 getDeletedAtShutdownObjects().add (
this);
43 getDeletedAtShutdownObjects().removeFirstMatchingValue (
this);
48JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4702)
58 localCopy = getDeletedAtShutdownObjects();
61 for (
int i = localCopy.
size(); --i >= 0;)
71 if (! getDeletedAtShutdownObjects().contains (deletee))
82 jassert (getDeletedAtShutdownObjects().isEmpty());
84 getDeletedAtShutdownObjects().clear();
87JUCE_END_IGNORE_WARNINGS_MSVC
ElementType getUnchecked(int index) const
int size() const noexcept
virtual ~DeletedAtShutdown()