gh-101538: Add experimental wasi-threads build (#101537)
Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
This commit is contained in:
@@ -356,7 +356,15 @@ PyThread_exit_thread(void)
|
||||
{
|
||||
if (!initialized)
|
||||
exit(0);
|
||||
#if defined(__wasi__)
|
||||
/*
|
||||
* wasi-threads doesn't have pthread_exit right now
|
||||
* cf. https://github.com/WebAssembly/wasi-threads/issues/7
|
||||
*/
|
||||
abort();
|
||||
#else
|
||||
pthread_exit(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef USE_SEMAPHORES
|
||||
|
||||
Reference in New Issue
Block a user