added Poco::SingletonHolder::reset()

This commit is contained in:
Guenter Obiltschnig 2016-08-27 08:22:25 +02:00
parent 9ccfcab380
commit 46c6953bdf

View File

@ -59,6 +59,14 @@ public:
return _pS;
}
void reset()
/// Deletes the singleton object.
{
FastMutex::ScopedLock lock(_m);
delete _pS;
_pS = 0;
}
private:
S* _pS;
FastMutex _m;