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

Unified Diff: src/d8.h

Issue 1226143003: d8: Fix some TSAN bugs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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 | src/d8.cc » ('j') | src/d8.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.h
diff --git a/src/d8.h b/src/d8.h
index 4d723473ea385c2c66b65c6ee65fd40e872592b8..f3b8eee783f87a92912735dc567df15621300146 100644
--- a/src/d8.h
+++ b/src/d8.h
@@ -243,6 +243,7 @@ class Worker {
void PostMessage(SerializationData* data);
SerializationData* GetMessage();
void Terminate();
+ void WaitForThread();
private:
class WorkerThread : public base::Thread {
@@ -257,7 +258,7 @@ class Worker {
Worker* worker_;
};
- enum State { IDLE, RUNNING, TERMINATED };
+ enum State { IDLE, RUNNING, TERMINATING, STOPPED, JOINING, JOINED };
Jarin 2015/07/10 10:43:17 Could we have some descriptions of what the states
binji 2015/07/10 17:40:46 Done.
void ExecuteInThread();
void Cleanup();
« no previous file with comments | « no previous file | src/d8.cc » ('j') | src/d8.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698