Skip to content

Conversation

@kateinoigakukun
Copy link
Member

Recent wasi-libc versions include pthreads support for both wasm32-wasip1 and wasm32-wasip1-threads targets.

Recent wasi-libc versions include pthreads support for both
wasm32-wasip1 and wasm32-wasip1-threads targets.
// move this next line up into the #if above after Foundation gets off this symbol. Also: <rdar://problem/39622745> Stop using _CFMainPThread
_CFMainPThread = pthread_self();
#elif TARGET_OS_WASI
_CFMainPThread = kNilPthreadT;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_POSIX_THREADS is now defined and pthread_self is available in wasi-libc, so this line won't be reachable

@kateinoigakukun
Copy link
Member Author

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant