1
0

pthread_setschedparam.c 262 B

12345678910
  1. #include "pthread_impl.h"
  2. int pthread_setschedparam(pthread_t t, int policy, const struct sched_param *param)
  3. {
  4. int r;
  5. __lock(t->killlock);
  6. r = t->dead ? ESRCH : -__syscall(SYS_sched_setscheduler, t->tid, policy, param);
  7. __unlock(t->killlock);
  8. return r;
  9. }