-
Notifications
You must be signed in to change notification settings - Fork 471
Use sched_yield() as fallback for preemption yield #459
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
Use sched_yield() as fallback for preemption yield #459
Conversation
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 wont work. #453 fix the Windows path to use Sleep(0);
I see. I’ll wait for #453 to be merged and re-do the this to also use sleep on Android. |
I’ve updated the patch to use |
Using |
@adierking that’s what I thought and had used originally. :-) Just to confirm, would you use |
I think it should be used as a fallback everywhere. Nothing should be using |
Great, I updated the patch to use |
@swift-ci please test |
@swift-ci please test |
1 similar comment
@swift-ci please test |
Use sched_yield() as fallback for preemption yield Signed-off-by: Kim Topley <[email protected]>
pthread_yield() is not available on Android.
In combination with #458 this fixes all build issues using Android NDK targeting API level 21 and up.