mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
Kernel+LibC: Report correct scheduling priority limits
The priority range was changed several years ago, but the userland-reported limits were just forgotten :skeleyak:. Move the thread priority constants into an API header so that userland can use it properly.
This commit is contained in:
parent
ce25bd8584
commit
6dded99777
3 changed files with 9 additions and 8 deletions
|
@ -16,6 +16,12 @@ struct sched_param {
|
|||
int sched_priority;
|
||||
};
|
||||
|
||||
#define THREAD_PRIORITY_MIN 1
|
||||
#define THREAD_PRIORITY_LOW 10
|
||||
#define THREAD_PRIORITY_NORMAL 30
|
||||
#define THREAD_PRIORITY_HIGH 50
|
||||
#define THREAD_PRIORITY_MAX 99
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue