Refactor SharedPtr and fix ContainerDeletePolicy bug

This commit is contained in:
Vinnie Falco
2013-09-04 11:00:10 -07:00
parent aa2773e483
commit 201221253d
21 changed files with 544 additions and 457 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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 ();

View File

@@ -48,7 +48,7 @@ protected:
private:
class TimerSingleton;
typedef SharedObjectPtr <TimerSingleton> TimerPtr;
typedef SharedPtr <TimerSingleton> TimerPtr;
struct Elem : List <Elem>::Node
{