diff options
Diffstat (limited to 'lib/System/Mutex.cpp')
-rw-r--r-- | lib/System/Mutex.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/System/Mutex.cpp b/lib/System/Mutex.cpp index 4ec5af302f..799beee680 100644 --- a/lib/System/Mutex.cpp +++ b/lib/System/Mutex.cpp @@ -62,8 +62,10 @@ Mutex::Mutex( bool recursive) errorcode = pthread_mutexattr_settype(&attr, kind); assert(errorcode == 0); +#ifndef __FreeBSD__ // Make it a process local mutex errorcode = pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_PRIVATE); +#endif // Initialize the mutex errorcode = pthread_mutex_init(mutex, &attr); |