projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add stub versions of some missing optional pthread interfaces
[musl]
/
src
/
thread
/
pthread_attr_get.c
diff --git
a/src/thread/pthread_attr_get.c
b/src/thread/pthread_attr_get.c
index
f81103d
..
e4650e4
100644
(file)
--- a/
src/thread/pthread_attr_get.c
+++ b/
src/thread/pthread_attr_get.c
@@
-68,6
+68,11
@@
int pthread_condattr_getpshared(const pthread_condattr_t *restrict a, int *restr
return 0;
}
return 0;
}
+int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *restrict a, int *restrict protocol)
+{
+ *protocol = PTHREAD_PRIO_NONE;
+ return 0;
+}
int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict a, int *restrict pshared)
{
*pshared = *a>>31;
int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict a, int *restrict pshared)
{
*pshared = *a>>31;