mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Refactor SharedPtr and fix ContainerDeletePolicy bug
This commit is contained in:
@@ -112,7 +112,7 @@ private:
|
||||
class Manager;
|
||||
|
||||
Listener* const m_listener;
|
||||
SharedObjectPtr <Manager> m_manager;
|
||||
SharedPtr <Manager> m_manager;
|
||||
bool m_isActive;
|
||||
Time m_notificationTime;
|
||||
double m_secondsRecurring; // non zero if recurring
|
||||
|
||||
@@ -106,7 +106,7 @@ struct ListenersBase::Proxy::Entry : Entries::Node,
|
||||
SharedObject,
|
||||
AllocatedBy <AllocatorType>
|
||||
{
|
||||
typedef SharedObjectPtr <Entry> Ptr;
|
||||
typedef SharedPtr <Entry> Ptr;
|
||||
|
||||
explicit Entry (Group* g)
|
||||
: group (g)
|
||||
|
||||
@@ -218,7 +218,7 @@ public:
|
||||
public AllocatedBy <CallAllocatorType>
|
||||
{
|
||||
public:
|
||||
typedef SharedObjectPtr <Call> Ptr;
|
||||
typedef SharedPtr <Call> Ptr;
|
||||
virtual void operator () (void* const listener) = 0;
|
||||
};
|
||||
|
||||
@@ -242,7 +242,7 @@ private:
|
||||
public AllocatedBy <AllocatorType>
|
||||
{
|
||||
public:
|
||||
typedef SharedObjectPtr <Group> Ptr;
|
||||
typedef SharedPtr <Group> Ptr;
|
||||
|
||||
explicit Group (CallQueue& callQueue);
|
||||
~Group ();
|
||||
|
||||
@@ -48,7 +48,7 @@ protected:
|
||||
|
||||
private:
|
||||
class TimerSingleton;
|
||||
typedef SharedObjectPtr <TimerSingleton> TimerPtr;
|
||||
typedef SharedPtr <TimerSingleton> TimerPtr;
|
||||
|
||||
struct Elem : List <Elem>::Node
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user