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

Unified Diff: src/isolate.h

Issue 1409993012: Add {CancelableTaskManager} to handle {Cancelable} concurrent tasks. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed concurrent version including unittests Created 5 years, 1 month 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: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index 79988f8f27a9a0c45f7d66fd4c2df9b46c4b81f0..a7f169848d8d6506a2c89ab86f94b4380beadca4 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -1093,8 +1093,9 @@ class Isolate {
FutexWaitListNode* futex_wait_list_node() { return &futex_wait_list_node_; }
- void RegisterCancelableTask(Cancelable* task);
- void RemoveCancelableTask(Cancelable* task);
+ CancelableTaskManager* cancelable_task_manager() {
+ return cancelable_task_manager_;
+ }
interpreter::Interpreter* interpreter() const { return interpreter_; }
@@ -1338,7 +1339,7 @@ class Isolate {
FutexWaitListNode futex_wait_list_node_;
- std::set<Cancelable*> cancelable_tasks_;
+ CancelableTaskManager* cancelable_task_manager_;
v8::Isolate::AbortOnUncaughtExceptionCallback
abort_on_uncaught_exception_callback_;
« src/cancelable-task.cc ('K') | « src/heap/scavenge-job.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698