forked from OSchip/llvm-project
Don't call pthread_mutexattr_setpshared on FreeBSD because its implementation
of pthreads is missing that call (despite it violating the spec). llvm-svn: 22423
This commit is contained in:
parent
65806e62b1
commit
86df93a216
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue