File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -148,4 +148,12 @@ addToLibrary({
148
148
} ) ;
149
149
return numCancelled ;
150
150
} ,
151
+
152
+ emscripten_has_threading_support : ( ) = > typeof SharedArrayBuffer != 'undefined' ,
153
+
154
+ emscripten_num_logical_cores : ( ) = >
155
+ #if ENVIRONMENT_MAY_BE_NODE
156
+ ENVIRONMENT_IS_NODE ? require ( 'os' ) . cpus ( ) . length :
157
+ #endif
158
+ navigator [ 'hardwareConcurrency' ] ,
151
159
} ) ;
Original file line number Diff line number Diff line change @@ -647,14 +647,6 @@ var LibraryPThread = {
647
647
return 0 ;
648
648
} ,
649
649
650
- emscripten_has_threading_support : ( ) => typeof SharedArrayBuffer != 'undefined' ,
651
-
652
- emscripten_num_logical_cores : ( ) =>
653
- #if ENVIRONMENT_MAY_BE_NODE
654
- ENVIRONMENT_IS_NODE ? require ( 'os' ) . cpus ( ) . length :
655
- #endif
656
- navigator [ 'hardwareConcurrency' ] ,
657
-
658
650
_emscripten_init_main_thread_js : ( tb ) => {
659
651
// Pass the thread address to the native code where they stored in wasm
660
652
// globals which act as a form of TLS. Global constructors trying
You can’t perform that action at this time.
0 commit comments