blob: bd0ba57f7ba2259f62d7514e575f0128eef5bb4c [file] [log] [blame]
#include "pthread_impl.h"
int pthread_attr_setschedpolicy(pthread_attr_t *a, int policy)
{
#ifdef __EMSCRIPTEN__ // XXX Emscripten: upstream this fix to musl.
if (policy < SCHED_OTHER || (policy & ~SCHED_RESET_ON_FORK) > SCHED_IDLE) return EINVAL;
#endif
a->_a_policy = policy;
return 0;
}