LibC: Add stubs for pthread_{get,set}schedparam

This commit is contained in:
Bananymous 2025-06-25 10:39:55 +03:00
parent 6d3d41abe2
commit 0f2c02fb04
1 changed files with 18 additions and 0 deletions

View File

@ -628,6 +628,24 @@ void pthread_testcancel(void)
pthread_exit(PTHREAD_CANCELED); pthread_exit(PTHREAD_CANCELED);
} }
int pthread_getschedparam(pthread_t thread, int* __restrict policy, struct sched_param* __restrict param)
{
(void)thread;
(void)policy;
(void)param;
dwarnln("TODO: pthread_getschedparam");
return ENOTSUP;
}
int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param* param)
{
(void)thread;
(void)policy;
(void)param;
dwarnln("TODO: pthread_setschedparam");
return ENOTSUP;
}
int pthread_spin_destroy(pthread_spinlock_t* lock) int pthread_spin_destroy(pthread_spinlock_t* lock)
{ {
(void)lock; (void)lock;