correct option should be PTHREAD_PROCESS_PRIVATE
This commit is contained in:
1 parent
aa769ee715
commit
70317853a8
1 file changed
+1
-1
@@ -187,7 +187,7 @@ semMutexId semMutexCreate(void) {
|
||||
status = pthread_condattr_init(&pmutex->condAttr);
|
||||
checkStatus(status,"pthread_condattr_init");
|
||||
status = pthread_condattr_setpshared(&pmutex->condAttr,
|
||||
_POSIX_THREAD_PROCESS_SHARED);
|
||||
PTHREAD_PROCESS_PRIVATE);
|
||||
checkStatus(status,"pthread_condattr_setpshared");
|
||||
status = pthread_cond_init(&pmutex->waitToBeOwner,&pmutex->condAttr);
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user