diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-12 12:48:48 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-12 12:48:48 +0000 |
| commit | 93e5dbed325f29c1bf867a2847d3b839d545cfb2 (patch) | |
| tree | f657b55b41a05cf364403a36edf9d0921f426e7d /src/DHTTaskFactoryImpl.h | |
| parent | f6f5a7e5eeec4f14418fec5a7be1bbe57a7ea7e1 (diff) | |
2010-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed SharedHandle::isNull(). Instead we added operator* and
operator unspecified_bool_type. Removed use of WeakHandle and
replaced with raw pointer.
Diffstat (limited to 'src/DHTTaskFactoryImpl.h')
| -rw-r--r-- | src/DHTTaskFactoryImpl.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/DHTTaskFactoryImpl.h b/src/DHTTaskFactoryImpl.h index 679dca27..032fb0fa 100644 --- a/src/DHTTaskFactoryImpl.h +++ b/src/DHTTaskFactoryImpl.h @@ -52,13 +52,13 @@ class DHTTaskFactoryImpl:public DHTTaskFactory { private: SharedHandle<DHTNode> localNode_; - WeakHandle<DHTRoutingTable> routingTable_; + DHTRoutingTable* routingTable_; - WeakHandle<DHTMessageDispatcher> dispatcher_; + DHTMessageDispatcher* dispatcher_; - WeakHandle<DHTMessageFactory> factory_; + DHTMessageFactory* factory_; - WeakHandle<DHTTaskQueue> taskQueue_; + DHTTaskQueue* taskQueue_; time_t timeout_; @@ -91,13 +91,13 @@ public: createReplaceNodeTask(const SharedHandle<DHTBucket>& bucket, const SharedHandle<DHTNode>& newNode); - void setRoutingTable(const WeakHandle<DHTRoutingTable> routingTable); + void setRoutingTable(DHTRoutingTable* routingTable); - void setMessageDispatcher(const WeakHandle<DHTMessageDispatcher> dispatcher); + void setMessageDispatcher(DHTMessageDispatcher* dispatcher); - void setMessageFactory(const WeakHandle<DHTMessageFactory> factory); + void setMessageFactory(DHTMessageFactory* factory); - void setTaskQueue(const WeakHandle<DHTTaskQueue> taskQueue); + void setTaskQueue(DHTTaskQueue* taskQueue); void setLocalNode(const SharedHandle<DHTNode>& localNode); |
