File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ def define_common_targets():
5050 "ovr_config//os:windows" : [":threadpool_lib" ],
5151 "ovr_config//os:android" : [":threadpool_lib" ],
5252 "ovr_config//os:iphoneos" : [":threadpool_lib" ],
53+ "ovr_config//runtime:wasm-emscripten" : [":threadpool_lib" ],
5354 # Machines without an operating system shouldn't.
5455 "ovr_config//os:none" : ["//executorch/runtime/kernel:thread_parallel_interface" ],
5556 # If we don't know what it is, disable threadpool out of caution.
Original file line number Diff line number Diff line change 3636
3737namespace executorch ::extension::threadpool {
3838
39- #if !( defined(WIN32))
39+ #if !defined(WIN32) && !defined(__EMSCRIPTEN__ )
4040namespace {
4141// After fork, the child process inherits the data-structures of the parent
4242// process' thread-pool, but since those threads don't exist, the thread-pool
@@ -153,7 +153,7 @@ ThreadPool* get_threadpool() {
153153
154154// Inheriting from old threadpool to get around segfault issue
155155// commented above at child_atfork
156- #if !( defined(WIN32))
156+ #if !defined(WIN32) && !defined(__EMSCRIPTEN__ )
157157 // @lint-ignore CLANGTIDY facebook-hte-std::once_flag
158158 static std::once_flag flag;
159159 // @lint-ignore CLANGTIDY facebook-hte-std::call_once
You can’t perform that action at this time.
0 commit comments