-
Notifications
You must be signed in to change notification settings - Fork 154
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
Feature request: support for sched_setscheduler
#1183
Comments
I'm not very familiar with If a safe interface to these functions is desired, it'd ideally go in a separate library from rustix, as it would just wrap libc and wouldn't require access to rustix's internals. |
As a user, the ergonomics of rustix is very nice. Since libc is listed as a backend, I thought these APIs could be considered. What you write make sense though. I leave this issue open in case anybody else wants to comment and will close it after a couple of days. |
There is currently no support for getting or setting the scheduling policies with
sched_getscheduler
andsched_setscheduler
respectively. I use this on Linux with PREEMPT_RT to set realtime priorities and FIFO scheduling, currently withlibc
.Other related parts are also not in rustix, e.g. to set the stack size (pthread).
Would you consider this in scope of rustix?
The text was updated successfully, but these errors were encountered: