26static SpinLock deletedAtShutdownLock;
28static Array<DeletedAtShutdown*>& getDeletedAtShutdownObjects()
30 static Array<DeletedAtShutdown*> objects;
37 getDeletedAtShutdownObjects().
add (
this);
49 #pragma warning (push)
50 #pragma warning (disable: 4702)
61 localCopy = getDeletedAtShutdownObjects();
74 if (! getDeletedAtShutdownObjects().contains (
deletee))
85 jassert (getDeletedAtShutdownObjects().isEmpty());
87 getDeletedAtShutdownObjects().
clear();
ElementType getUnchecked(int index) const
int size() const noexcept
void removeFirstMatchingValue(ParameterType valueToRemove)
void add(const ElementType &newElement)
virtual ~DeletedAtShutdown()