mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
added Poco::SingletonHolder::reset()
This commit is contained in:
parent
9ccfcab380
commit
46c6953bdf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user