Browse Source

Merge eceb678560 into 43e1173e30

pull/613/merge
fps GitHub 7 months ago
parent
commit
4067522529
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      posix/JackPosixMutex.cpp

+ 4
- 1
posix/JackPosixMutex.cpp View File

@@ -28,7 +28,10 @@ namespace Jack
JackBasePosixMutex::JackBasePosixMutex(const char* name)
:fOwner(0)
{
int res = pthread_mutex_init(&fMutex, NULL);
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK);
int res = pthread_mutex_init(&fMutex, &attr);
ThrowIf(res != 0, JackException("JackBasePosixMutex: could not init the mutex"));
}



Loading…
Cancel
Save