Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/benchmarks/libmicro/files/patch-mutex.c
16461 views
1
--- mutex.c.orig 2011-05-11 00:58:23 UTC
2
+++ mutex.c
3
@@ -121,9 +121,11 @@ benchmark_initrun()
4
errors++;
5
} else {
6
(void) pthread_mutexattr_init(&attr);
7
+#if !defined(__FreeBSD__)
8
if (optp)
9
(void) pthread_mutexattr_setpshared(&attr,
10
PTHREAD_PROCESS_SHARED);
11
+#endif
12
13
if (pthread_mutex_init(lock, &attr) != 0)
14
errors++;
15
16