MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / require_pthreads

Method require_pthreads

test/common.py:479–488  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

477 self.skipTest('dynamic linking not supported with MEMORY64=2')
478
479 def require_pthreads(self):
480 self.cflags += ['-Wno-pthreads-mem-growth', '-pthread']
481 if not self.is_browser_test():
482 if self.get_setting('MINIMAL_RUNTIME'):
483 self.skipTest('non-browser pthreads not yet supported with MINIMAL_RUNTIME')
484 for engine in self.js_engines:
485 if engine_is_node(engine) or engine_is_bun(engine) or engine_is_deno(engine):
486 self.require_engine(engine)
487 return
488 self.fail('no JS engine found capable of running pthreads')
489
490 def require_v8(self):
491 if 'EMTEST_SKIP_V8' in os.environ:

Callers 11

decoratedFunction · 0.80
test_ld_library_pathMethod · 0.80
test_poll_nonblockingMethod · 0.80
test_preload_moduleMethod · 0.80
test_em_jsMethod · 0.80
test_dlfcn_basicMethod · 0.80
test_pipe_selectMethod · 0.80

Calls 7

is_browser_testMethod · 0.95
get_settingMethod · 0.95
require_engineMethod · 0.95
engine_is_nodeFunction · 0.85
engine_is_bunFunction · 0.85
engine_is_denoFunction · 0.85
failMethod · 0.80

Tested by 10

test_ld_library_pathMethod · 0.64
test_poll_nonblockingMethod · 0.64
test_preload_moduleMethod · 0.64
test_em_jsMethod · 0.64
test_dlfcn_basicMethod · 0.64
test_pipe_selectMethod · 0.64