Chromium Code Reviews| 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(); |