REVIEW: destroy process singleton on sequence where IO is allowed

This commit is contained in:
deepak1556
2017-12-11 13:25:49 +05:30
committed by Cheng Zhao
parent c3154d86e0
commit 88e53b1b5e
13 changed files with 90 additions and 110 deletions

View File

@@ -18,6 +18,8 @@ namespace atom {
// Manage the V8 isolate and context automatically.
class JavascriptEnvironment {
public:
static void Initialize();
JavascriptEnvironment();
void OnMessageLoopCreated();
@@ -30,12 +32,6 @@ class JavascriptEnvironment {
}
private:
bool Initialize();
// Leaked on exit.
node::NodePlatform* platform_;
bool initialized_;
gin::IsolateHolder isolate_holder_;
v8::Isolate* isolate_;
v8::Isolate::Scope isolate_scope_;