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();
static void deleteAll()
Deletes all extant objects.
DeletedAtShutdown()
Creates a DeletedAtShutdown object.
ElementType getUnchecked(int index) const
Returns one of the elements in the array, without checking the index passed in.
Holds a resizable array of primitive or copy-by-value objects.
int size() const noexcept
Returns the current number of elements in the array.
virtual ~DeletedAtShutdown()
Destructor.
Automatically locks and unlocks a mutex object.