-
Notifications
You must be signed in to change notification settings - Fork 10.5k
port SwiftPrivatePthreadExtras to Windows #20719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f3e3c1a
to
fe4fd9a
Compare
@swift-ci please test |
Build failed |
fe4fd9a
to
15f21ec
Compare
@swift-ci please test |
Build failed |
Build failed |
This is in preparation to make the code here more target agnostic for porting to the Windows threading primitives. This is used pretty extensively in the tests, so disabling tests would lose a chunk of coverage.
These were not in use, and removing this from the signature makes it possible to re-use the exact signature on Windows more easily.
The attributes were not being used currently. Since this is a private interface, remove the parameter as it makes it easier to port to Windows.
…D_BARRIER_SERIAL_THREAD
This is needed to build the threading extras.
…reaing Port the block based thread constructor to Windows threading model, and rename it to `_stdlib_create_thread_block`.
Implement `_stdlib_pthread_join` in terms of windows threading. Additionally, rename it to `_stdlib_thread_join`.
This has been generalized enough to permit building on Windows with Windows threading primitives.
15f21ec
to
0aec837
Compare
@swift-ci please test |
Build failed |
Build failed |
CC: @jrose-apple ... not sure of a good person to ask to take a look at this change, and I'm not sure if there is something Apple internal which might be impacted here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! (I'm not too familiar with this corner of the repo though.)
Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.
Resolves SR-NNNN.