File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -4439,6 +4439,11 @@ void FreeEnvironment(Environment* env) {
4439
4439
}
4440
4440
4441
4441
4442
+ MultiIsolatePlatform* GetMainThreadMultiIsolatePlatform () {
4443
+ return v8_platform.Platform ();
4444
+ }
4445
+
4446
+
4442
4447
MultiIsolatePlatform* CreatePlatform (
4443
4448
int thread_pool_size,
4444
4449
v8::TracingController* tracing_controller) {
Original file line number Diff line number Diff line change @@ -251,6 +251,11 @@ NODE_EXTERN Environment* CreateEnvironment(IsolateData* isolate_data,
251
251
NODE_EXTERN void LoadEnvironment (Environment* env);
252
252
NODE_EXTERN void FreeEnvironment (Environment* env);
253
253
254
+ // This returns the MultiIsolatePlatform used in the main thread of Node.js.
255
+ // If NODE_USE_V8_PLATFORM haven't been defined when Node.js was built,
256
+ // it returns nullptr.
257
+ NODE_EXTERN MultiIsolatePlatform* GetMainThreadMultiIsolatePlatform ();
258
+
254
259
NODE_EXTERN MultiIsolatePlatform* CreatePlatform (
255
260
int thread_pool_size,
256
261
v8::TracingController* tracing_controller);
You can’t perform that action at this time.
0 commit comments