source:
azure_iot_hub_mbedtls/trunk/musl-1.1.18/src/thread/pthread_setschedparam.c@
398
Last change on this file since 398 was 398, checked in by , 5 years ago | |
---|---|
|
|
File size: 262 bytes |
Line | |
---|---|
1 | #include "pthread_impl.h" |
2 | |
3 | int pthread_setschedparam(pthread_t t, int policy, const struct sched_param *param) |
4 | { |
5 | int r; |
6 | __lock(t->killlock); |
7 | r = t->dead ? ESRCH : -__syscall(SYS_sched_setscheduler, t->tid, policy, param); |
8 | __unlock(t->killlock); |
9 | return r; |
10 | } |
Note:
See TracBrowser
for help on using the repository browser.