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();
Holds a resizable array of primitive or copy-by-value objects.
ElementType getUnchecked(int index) const
Returns one of the elements in the array, without checking the index passed in.
int size() const noexcept
Returns the current number of elements in the array.
void removeFirstMatchingValue(ParameterType valueToRemove)
Removes an item from the array.
void add(const ElementType &newElement)
Appends a new element at the end of the array.
void clear()
Removes all elements from the array.
static void deleteAll()
Deletes all extant objects.
virtual ~DeletedAtShutdown()
Destructor.
DeletedAtShutdown()
Creates a DeletedAtShutdown object.