diff options
author | kleines Filmröllchen <filmroellchen@serenityos.org> | 2022-07-24 16:38:41 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-27 11:30:19 +0100 |
commit | 6dded99777419746f2dc8ccbc899a1527c121cb8 (patch) | |
tree | 400d91d735b6ca09ae943a37fe1e311f07083265 /Kernel/API | |
parent | ce25bd858416fe088466ac451bacad46ced9ff31 (diff) | |
download | serenity-6dded99777419746f2dc8ccbc899a1527c121cb8.zip |
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.
Diffstat (limited to 'Kernel/API')
-rw-r--r-- | Kernel/API/POSIX/sched.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Kernel/API/POSIX/sched.h b/Kernel/API/POSIX/sched.h index 77dff7fe60..e2e6b978b9 100644 --- a/Kernel/API/POSIX/sched.h +++ b/Kernel/API/POSIX/sched.h @@ -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 |