Added missing initialization of mutex attribute call.
This commit is contained in:
parent
bede6352c1
commit
619dd75f0d
|
@ -295,7 +295,9 @@ CArchMutex
|
||||||
CArchMultithreadPosix::newMutex()
|
CArchMultithreadPosix::newMutex()
|
||||||
{
|
{
|
||||||
pthread_mutexattr_t attr;
|
pthread_mutexattr_t attr;
|
||||||
int status = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
|
int status = pthread_mutexattr_init(&attr);
|
||||||
|
assert(status == 0);
|
||||||
|
status = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
|
||||||
assert(status == 0);
|
assert(status == 0);
|
||||||
CArchMutexImpl* mutex = new CArchMutexImpl;
|
CArchMutexImpl* mutex = new CArchMutexImpl;
|
||||||
status = pthread_mutex_init(&mutex->m_mutex, &attr);
|
status = pthread_mutex_init(&mutex->m_mutex, &attr);
|
||||||
|
|
Loading…
Reference in New Issue