26static SpinLock deletedAtShutdownLock;
28static Array<DeletedAtShutdown*>& getDeletedAtShutdownObjects()
30 static Array<DeletedAtShutdown*> objects;
37 getDeletedAtShutdownObjects().add (
this);
43 getDeletedAtShutdownObjects().removeFirstMatchingValue (
this);
48JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4702)
58 localCopy = getDeletedAtShutdownObjects();
71 if (! getDeletedAtShutdownObjects().contains (
deletee))
82 jassert (getDeletedAtShutdownObjects().isEmpty());
84 getDeletedAtShutdownObjects().clear();
87JUCE_END_IGNORE_WARNINGS_MSVC
virtual ~DeletedAtShutdown()