| 1 |
#include "pthread_impl.h" |
| 2 |
|
| 3 |
int pthread_attr_setschedparam(pthread_attr_t *restrict a, const struct sched_param *restrict param) |
| 4 |
{ |
| 5 |
#ifdef __wasilibc_unmodified_upstream |
| 6 |
a->_a_prio = param->sched_priority; |
| 7 |
#else |
| 8 |
if (param->sched_priority != 0) return ENOTSUP; |
| 9 |
#endif |
| 10 |
return 0; |
| 11 |
} |