diff options
Diffstat (limited to 'base/message_loop.h')
-rw-r--r-- | base/message_loop.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/base/message_loop.h b/base/message_loop.h index 395ce6e..d2fcc12 100644 --- a/base/message_loop.h +++ b/base/message_loop.h @@ -281,7 +281,13 @@ class MessageLoop : public base::MessagePump::Delegate { bool operator<(const PendingTask& other) const; }; - typedef std::queue<PendingTask> TaskQueue; + class TaskQueue : public std::queue<PendingTask> { + public: + void Swap(TaskQueue* queue) { + c.swap(queue->c); // Calls std::deque::swap + } + }; + typedef std::priority_queue<PendingTask> DelayedTaskQueue; #if defined(OS_WIN) |