mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 13:37:40 +03:00
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
This commit is contained in:
parent
126a4bde61
commit
07d270c87e
709 changed files with 6305 additions and 6878 deletions
|
@ -7,11 +7,11 @@ namespace aria2 {
|
|||
|
||||
class MockDHTTaskQueue:public DHTTaskQueue {
|
||||
public:
|
||||
std::deque<SharedHandle<DHTTask> > periodicTaskQueue1_;
|
||||
std::deque<std::shared_ptr<DHTTask> > periodicTaskQueue1_;
|
||||
|
||||
std::deque<SharedHandle<DHTTask> > periodicTaskQueue2_;
|
||||
std::deque<std::shared_ptr<DHTTask> > periodicTaskQueue2_;
|
||||
|
||||
std::deque<SharedHandle<DHTTask> > immediateTaskQueue_;
|
||||
std::deque<std::shared_ptr<DHTTask> > immediateTaskQueue_;
|
||||
|
||||
MockDHTTaskQueue() {}
|
||||
|
||||
|
@ -19,17 +19,17 @@ public:
|
|||
|
||||
virtual void executeTask() {}
|
||||
|
||||
virtual void addPeriodicTask1(const SharedHandle<DHTTask>& task)
|
||||
virtual void addPeriodicTask1(const std::shared_ptr<DHTTask>& task)
|
||||
{
|
||||
periodicTaskQueue1_.push_back(task);
|
||||
}
|
||||
|
||||
virtual void addPeriodicTask2(const SharedHandle<DHTTask>& task)
|
||||
virtual void addPeriodicTask2(const std::shared_ptr<DHTTask>& task)
|
||||
{
|
||||
periodicTaskQueue2_.push_back(task);
|
||||
}
|
||||
|
||||
virtual void addImmediateTask(const SharedHandle<DHTTask>& task)
|
||||
virtual void addImmediateTask(const std::shared_ptr<DHTTask>& task)
|
||||
{
|
||||
immediateTaskQueue_.push_back(task);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue