Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(613)

Unified Diff: webrtc/base/task_queue.h

Issue 2733723002: Refactor Windows TaskQueue code to only need a single high res timer. (Closed)
Patch Set: Change the PostMultipleDelayed test to fire tasks targeted at different intervals Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/base/task_queue_unittest.cc » ('j') | webrtc/base/task_queue_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/task_queue.h
diff --git a/webrtc/base/task_queue.h b/webrtc/base/task_queue.h
index 7d0d41437d5fc5bd13c73cd2d2961c4845640037..c2caaafc29d6c0c73c7912d9b26e9f4ab6b0f24f 100644
--- a/webrtc/base/task_queue.h
+++ b/webrtc/base/task_queue.h
@@ -13,7 +13,7 @@
#include <list>
#include <memory>
-#include <unordered_map>
+#include <vector>
the sun 2017/03/07 11:24:24 Hmm. I don't find a reference to vector in this fi
tommi 2017/03/09 20:27:42 Removed. (I added it while it was supposed to have
#if defined(WEBRTC_MAC) && !defined(WEBRTC_BUILD_LIBEVENT)
#include <dispatch/dispatch.h>
@@ -274,12 +274,8 @@ class LOCKABLE TaskQueue {
dispatch_queue_t queue_;
QueueContext* const context_;
#elif defined(WEBRTC_WIN)
- class MultimediaTimer;
- typedef std::unordered_map<UINT_PTR, std::unique_ptr<QueuedTask>>
- DelayedTasks;
+ class ThreadState;
static void ThreadMain(void* context);
- static bool ProcessQueuedMessages(DelayedTasks* delayed_tasks,
- std::vector<MultimediaTimer>* timers);
class WorkerThread : public PlatformThread {
public:
« no previous file with comments | « no previous file | webrtc/base/task_queue_unittest.cc » ('j') | webrtc/base/task_queue_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698