implement barrier attribute functions (essentially no-ops)
[musl] / src / thread / pthread_barrierattr_setpshared.c
diff --git a/src/thread/pthread_barrierattr_setpshared.c b/src/thread/pthread_barrierattr_setpshared.c
new file mode 100644 (file)
index 0000000..d6c7f9a
--- /dev/null
@@ -0,0 +1,7 @@
+#include "pthread_impl.h"
+
+int pthread_barrierattr_setpshared(pthread_barrierattr_t *a, int pshared)
+{
+       *a = !!pshared;
+       return 0;
+}