File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 12
12
namespace v8 {
13
13
namespace platform {
14
14
15
+ enum class IdleTaskSupport { kDisabled , kEnabled };
16
+
15
17
/* *
16
18
* Returns a new instance of the default v8::Platform implementation.
17
19
*
@@ -21,7 +23,8 @@ namespace platform {
21
23
* processors online will be chosen.
22
24
*/
23
25
V8_PLATFORM_EXPORT v8::Platform* CreateDefaultPlatform (
24
- int thread_pool_size = 0 );
26
+ int thread_pool_size = 0 ,
27
+ IdleTaskSupport idle_task_support = IdleTaskSupport::kDisabled );
25
28
26
29
/* *
27
30
* Pumps the message loop for the given isolate.
Original file line number Diff line number Diff line change 17
17
namespace v8 {
18
18
namespace platform {
19
19
20
-
21
- v8::Platform* CreateDefaultPlatform ( int thread_pool_size ) {
20
+ v8::Platform* CreateDefaultPlatform ( int thread_pool_size,
21
+ IdleTaskSupport idle_task_support ) {
22
22
DefaultPlatform* platform = new DefaultPlatform ();
23
23
platform->SetThreadPoolSize (thread_pool_size);
24
24
platform->EnsureInitialized ();
You can’t perform that action at this time.
0 commit comments