Former-commit-id: ea9e193d2cd3a4dca31c570037ea7b6c12edb826
This commit is contained in:
Lynix 2013-08-12 00:54:21 +02:00
commit 09e3027129
1 changed files with 1 additions and 1 deletions

View File

@ -43,5 +43,5 @@ bool NzConditionVariableImpl::Wait(NzMutexImpl* mutex, nzUInt32 timeout)
ti.tv_sec = tv.tv_sec + (timeout / 1000) + (ti.tv_nsec / 1000000000);
ti.tv_nsec %= 1000000000;
return pthread_cond_timedwait(&m_cv,mutex, &tv) != ETIMEDOUT;
return pthread_cond_timedwait(&m_cv,&mutex->m_handle, &ti) != 0;
}