Skip to content
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

Implement thread parking for Windows #2630

Merged
merged 5 commits into from
Oct 28, 2022
Merged

Conversation

RalfJung
Copy link
Member

Cc #2628

Based on code by @drmeepster. However I adjusted WakeByAddressSingle: I don't think the futex value is compared again after the thread is woken up. I see nothing in the Windows docs indicating such a comparison, and the Linux futex does not behave like that either. So we only check the value before sleeping, same as on Linux.

@RalfJung
Copy link
Member Author

@bors r+

@bors
Copy link
Contributor

bors commented Oct 28, 2022

📌 Commit 4ee0c8d has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Oct 28, 2022

⌛ Testing commit 4ee0c8d with merge e3a44a9...

@bors
Copy link
Contributor

bors commented Oct 28, 2022

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing e3a44a9 to master...

@bors bors merged commit e3a44a9 into rust-lang:master Oct 28, 2022
@RalfJung RalfJung deleted the windows-parking branch October 29, 2022 09:09
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 30, 2022
RalfJung pushed a commit to RalfJung/miri that referenced this pull request Nov 5, 2022
RalfJung pushed a commit to RalfJung/rust-analyzer that referenced this pull request Apr 20, 2024
RalfJung pushed a commit to RalfJung/rust-analyzer that referenced this pull request Apr 27, 2024
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.

2 participants