mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix leak on exit from Singleton dependency cycle
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
@ingroup beast_concurrent
|
@ingroup beast_concurrent
|
||||||
*/
|
*/
|
||||||
class BEAST_API FifoFreeStoreWithTLS
|
class BEAST_API FifoFreeStoreWithTLS : public LeakChecked <FifoFreeStoreWithTLS>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FifoFreeStoreWithTLS ();
|
FifoFreeStoreWithTLS ();
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
@ingroup beast_concurrent
|
@ingroup beast_concurrent
|
||||||
*/
|
*/
|
||||||
class BEAST_API FifoFreeStoreWithoutTLS
|
class BEAST_API FifoFreeStoreWithoutTLS : LeakChecked <FifoFreeStoreWithoutTLS>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit FifoFreeStoreWithoutTLS ();
|
explicit FifoFreeStoreWithoutTLS ();
|
||||||
|
|||||||
@@ -17,7 +17,9 @@
|
|||||||
*/
|
*/
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|
||||||
class DeadlineTimer::Manager : protected Thread
|
class DeadlineTimer::Manager
|
||||||
|
: public LeakChecked <Manager>
|
||||||
|
, protected Thread
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
typedef CriticalSection LockType;
|
typedef CriticalSection LockType;
|
||||||
@@ -203,8 +205,7 @@ private:
|
|||||||
|
|
||||||
DeadlineTimer::DeadlineTimer (Listener* listener)
|
DeadlineTimer::DeadlineTimer (Listener* listener)
|
||||||
: m_listener (listener)
|
: m_listener (listener)
|
||||||
, m_manager (SharedSingleton <Manager>::getInstance (
|
, m_manager (SharedSingleton <Manager>::getInstance ())
|
||||||
SingletonLifetime::persistAfterCreation))
|
|
||||||
, m_isActive (false)
|
, m_isActive (false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user