-
Notifications
You must be signed in to change notification settings - Fork 675
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
Expose sched_yield on non-linux-like hosts #1090
Conversation
It looks like you're doing two separate things in a single commit.
Would you mind separating those two separate things into two commits? That will make this PR easier to review, and it will make the history clearer. Also, you're going to need a CHANGELOG entry. |
No probs! Will do! :-) |
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.
LGTM, apart from the extra changelog entry.
@asomers Changelog is now fixed. Lemme know if there's anything else! :-) |
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.
bors r+
Hmm, is it just me, or did bors get somehow stuck? @asomers thoughts? |
I don't know what the problem was, but bors is fine now. However, there's been an additional problem that you'll have to rebase to fix, or else the tests will fail. |
Done! |
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.
bors r+
1090: Expose sched_yield on non-linux-like hosts r=asomers a=kubkon Currently, `sched` module is compiled only for linux-like hosts. However, the recently added syscall `sched_yield` is universal to all *nixes. This PR pulls all linux-like functionality into a private `sched_linux_like` module which is enabled only for android and linux hosts, while `sched_yield` and `sched` modules are now compiled for all *nixes, thus, correctly exposing `sched_yield` to other non-linux hosts. Co-authored-by: Jakub Konka <jakub.konka@golem.network>
Timed out |
bors retry |
1090: Expose sched_yield on non-linux-like hosts r=asomers a=kubkon Currently, `sched` module is compiled only for linux-like hosts. However, the recently added syscall `sched_yield` is universal to all *nixes. This PR pulls all linux-like functionality into a private `sched_linux_like` module which is enabled only for android and linux hosts, while `sched_yield` and `sched` modules are now compiled for all *nixes, thus, correctly exposing `sched_yield` to other non-linux hosts. Co-authored-by: Jakub Konka <jakub.konka@golem.network>
Timed out |
Travis and Cirrus seem to be fine. I don't know why bors isn't working. Third try's a charm? bors retry |
1090: Expose sched_yield on non-linux-like hosts r=asomers a=kubkon Currently, `sched` module is compiled only for linux-like hosts. However, the recently added syscall `sched_yield` is universal to all *nixes. This PR pulls all linux-like functionality into a private `sched_linux_like` module which is enabled only for android and linux hosts, while `sched_yield` and `sched` modules are now compiled for all *nixes, thus, correctly exposing `sched_yield` to other non-linux hosts. Co-authored-by: Jakub Konka <jakub.konka@golem.network>
Build succeeded
|
Currently,
sched
module is compiled only for linux-like hosts. However, the recently added syscallsched_yield
is universal to all *nixes. This PR pulls all linux-like functionality into a privatesched_linux_like
module which is enabled only for android and linux hosts, whilesched_yield
andsched
modules are now compiled for all *nixes, thus, correctly exposingsched_yield
to other non-linux hosts.