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

Unified Diff: base/task_scheduler/task_scheduler_impl.h

Issue 2557083002: Run ScopedTaskScheduler tasks synchronously. (Closed)
Patch Set: rebase Created 4 years 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 | « base/task_scheduler/task_scheduler.h ('k') | base/task_scheduler/task_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_scheduler_impl.h
diff --git a/base/task_scheduler/task_scheduler_impl.h b/base/task_scheduler/task_scheduler_impl.h
index 9a161037fee8915fd95cd7e19102b81911fa5dbc..0e03d52cd06e358fd50337bd4c5cd13ad868d65e 100644
--- a/base/task_scheduler/task_scheduler_impl.h
+++ b/base/task_scheduler/task_scheduler_impl.h
@@ -62,7 +62,10 @@ class BASE_EXPORT TaskSchedulerImpl : public TaskScheduler {
std::vector<const HistogramBase*> GetHistograms() const override;
void Shutdown() override;
void FlushForTesting() override;
- void JoinForTesting() override;
+
+ // Joins all threads. Tasks that are already running are allowed to complete
+ // their execution. This can only be called once.
+ void JoinForTesting();
private:
explicit TaskSchedulerImpl(const WorkerPoolIndexForTraitsCallback&
« no previous file with comments | « base/task_scheduler/task_scheduler.h ('k') | base/task_scheduler/task_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698