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();
ElementType getUnchecked(int index) const
int size() const noexcept
virtual ~DeletedAtShutdown()