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

Unified Diff: content/renderer/categorized_worker_pool.h

Issue 2664953004: Do not block in SimpleThread::Start(). (Closed)
Patch Set: HasBeenStarted() Created 3 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
Index: content/renderer/categorized_worker_pool.h
diff --git a/content/renderer/categorized_worker_pool.h b/content/renderer/categorized_worker_pool.h
index cd3be4672b1be110014ca39574f7122862c940de..66e92a6a8b5abc89d6791a6d1fc051a821afd64a 100644
--- a/content/renderer/categorized_worker_pool.h
+++ b/content/renderer/categorized_worker_pool.h
@@ -69,9 +69,7 @@ class CONTENT_EXPORT CategorizedWorkerPool : public base::TaskRunner,
// Create a new sequenced task graph runner.
scoped_refptr<base::SequencedTaskRunner> CreateSequencedTaskRunner();
- base::PlatformThreadId background_worker_thread_id() const {
- return threads_.back()->tid();
- }
+ base::PlatformThreadId GetBackgroundWorkerThreadId() const;
gab 2017/02/06 20:29:11 Comment that this may block until the background w
fdoray 2017/02/06 20:46:48 Done.
protected:
~CategorizedWorkerPool() override;

Powered by Google App Engine
This is Rietveld 408576698