diff options
author | Vsevolod Stakhov <vsevolod@FreeBSD.org> | 2005-08-28 09:05:53 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@FreeBSD.org> | 2005-08-28 09:05:53 +0000 |
commit | 0f17a23c50e7d899046eb1edca8558abab5e90c2 (patch) | |
tree | 6544766de6b6f7c39659acfab2efff6269c92abb /benchmarks/libmicro/files/patch-mutex.c | |
parent | Upgrade to 1.0.2. (diff) |
Add libmicro - a set of portable benchmarks of system calls from
opensolaris project.
Approved by: perky (mentor)
In collaboration with: gnn
Diffstat (limited to '')
-rw-r--r-- | benchmarks/libmicro/files/patch-mutex.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/benchmarks/libmicro/files/patch-mutex.c b/benchmarks/libmicro/files/patch-mutex.c new file mode 100644 index 000000000000..8ff00c197695 --- /dev/null +++ b/benchmarks/libmicro/files/patch-mutex.c @@ -0,0 +1,14 @@ +--- mutex.c.orig Sat Aug 6 14:17:43 2005 ++++ mutex.c Sat Aug 6 14:18:26 2005 +@@ -125,9 +125,11 @@ + errors++; + } else { + (void) pthread_mutexattr_init(&attr); ++#if !defined(__FreeBSD__) + if (optp) + (void) pthread_mutexattr_setpshared(&attr, + PTHREAD_PROCESS_SHARED); ++#endif + + if (pthread_mutex_init(lock, &attr) != 0) + errors++; |