mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-25 06:36:37 +01:00
added Poco::SingletonHolder::reset()
This commit is contained in:
@@ -59,6 +59,14 @@ public:
|
|||||||
return _pS;
|
return _pS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void reset()
|
||||||
|
/// Deletes the singleton object.
|
||||||
|
{
|
||||||
|
FastMutex::ScopedLock lock(_m);
|
||||||
|
delete _pS;
|
||||||
|
_pS = 0;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
S* _pS;
|
S* _pS;
|
||||||
FastMutex _m;
|
FastMutex _m;
|
||||||
|
|||||||
Reference in New Issue
Block a user