projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add support for thread scheduling (POSIX TPS option)
[musl]
/
src
/
thread
/
pthread_attr_setinheritsched.c
diff --git a/src/thread/pthread_attr_setinheritsched.c
b/src/thread/pthread_attr_setinheritsched.c
new file mode 100644
(file)
index 0000000..
c91d8f8
--- /dev/null
+++ b/
src/thread/pthread_attr_setinheritsched.c
@@ -0,0
+1,8
@@
+#include "pthread_impl.h"
+
+int pthread_attr_setinheritsched(pthread_attr_t *a, int inherit)
+{
+ if (inherit > 1U) return EINVAL;
+ a->_a_sched = inherit;
+ return 0;
+}