26 static SpinLock deletedAtShutdownLock;
28 static Array<DeletedAtShutdown*>& getDeletedAtShutdownObjects()
30 static Array<DeletedAtShutdown*> objects;
37 getDeletedAtShutdownObjects().add (
this);
43 getDeletedAtShutdownObjects().removeFirstMatchingValue (
this);
49 #pragma warning (push)
50 #pragma warning (disable: 4702)
61 localCopy = getDeletedAtShutdownObjects();
64 for (
int i = localCopy.
size(); --i >= 0;)
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.
static void deleteAll()
Deletes all extant objects.
virtual ~DeletedAtShutdown()
Destructor.
DeletedAtShutdown()
Creates a DeletedAtShutdown object.
Automatically locks and unlocks a mutex object.