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