Return ENOSYS to pthread_getschedparam instead of panic

This commit is contained in:
Wildan M
2026-06-26 07:58:15 +07:00
parent 08fb0c193d
commit ec78de0abf
+2 -1
View File
@@ -397,7 +397,8 @@ pub fn get_cpu_clkid(thread: &Pthread) -> Result<clockid_t, Errno> {
Err(Errno(ENOENT))
}
pub fn get_sched_param(thread: &Pthread) -> Result<(clockid_t, sched_param), Errno> {
todo!()
// TODO should be possible to return sched_param
Err(Errno(ENOSYS))
}
// TODO: Hash map?