fix: iocp integration when process is reused (#33207)

This commit is contained in:
Robo
2022-03-21 16:42:22 +09:00
committed by GitHub
parent e100402b13
commit 4cc2ed842e
9 changed files with 83 additions and 17 deletions

View File

@@ -93,11 +93,15 @@ class NodeBindings {
void LoadEnvironment(node::Environment* env);
// Prepare for message loop integration.
void PrepareMessageLoop();
virtual void PrepareMessageLoop();
// Do message loop integration.
virtual void RunMessageLoop();
// Gets/sets the per isolate data.
void set_isolate_data(node::IsolateData* isolate_data) {
isolate_data_ = isolate_data;
}
node::IsolateData* isolate_data() const { return isolate_data_; }
// Gets/sets the environment to wrap uv loop.
@@ -161,10 +165,6 @@ class NodeBindings {
// Isolate data used in creating the environment
node::IsolateData* isolate_data_ = nullptr;
#if !BUILDFLAG(IS_WIN)
int handle_ = -1;
#endif
base::WeakPtrFactory<NodeBindings> weak_factory_{this};
};