projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
report that posix_spawn is supported in unistd.h and sysconf
[musl]
/
src
/
thread
/
pthread_attr_setschedparam.c
diff --git
a/src/thread/pthread_attr_setschedparam.c
b/src/thread/pthread_attr_setschedparam.c
index
b305f2f
..
d4c1204
100644
(file)
--- a/
src/thread/pthread_attr_setschedparam.c
+++ b/
src/thread/pthread_attr_setschedparam.c
@@
-1,7
+1,7
@@
#include "pthread_impl.h"
#include "pthread_impl.h"
-int pthread_attr_setschedparam(pthread_attr_t *
a, const struct sched_param *
param)
+int pthread_attr_setschedparam(pthread_attr_t *
restrict a, const struct sched_param *restrict
param)
{
{
-
if (param->sched_priority) return ENOTSUP
;
+
a->_a_prio = param->sched_priority
;
return 0;
}
return 0;
}