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

Unified Diff: content/child/worker_task_runner.h

Issue 886593002: workers: Map the current thread-id to the WorkerRunLoop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | content/child/worker_task_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/worker_task_runner.h
diff --git a/content/child/worker_task_runner.h b/content/child/worker_task_runner.h
index 6230551989b5d457677df988acb9d954c6fb8bf7..6d6c4723239adf794ea5844057bb078f47b4b407 100644
--- a/content/child/worker_task_runner.h
+++ b/content/child/worker_task_runner.h
@@ -7,9 +7,9 @@
#include <map>
-#include "base/atomic_sequence_num.h"
#include "base/callback_forward.h"
#include "base/synchronization/lock.h"
+#include "base/threading/platform_thread.h"
#include "base/threading/thread_local.h"
#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebWorkerRunLoop.h"
@@ -42,14 +42,13 @@ class CONTENT_EXPORT WorkerTaskRunner {
private:
friend class WorkerTaskRunnerTest;
- typedef std::map<int, blink::WebWorkerRunLoop> IDToLoopMap;
+ typedef std::map<base::PlatformThreadId, blink::WebWorkerRunLoop> IDToLoopMap;
~WorkerTaskRunner();
struct ThreadLocalState;
base::ThreadLocalPointer<ThreadLocalState> current_tls_;
- base::AtomicSequenceNumber id_sequence_;
IDToLoopMap loop_map_;
base::Lock loop_map_lock_;
};
« no previous file with comments | « no previous file | content/child/worker_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698