Merge pull request #17 from danman5555/master
[POSIX] Fix ConditionVariableImpl.cpp compilation errors. Former-commit-id: 821c1fbd879ce6c54ba9758ad2b4423ba179a63e
This commit is contained in:
commit
3896fe6e11
|
|
@ -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_sec = tv.tv_sec + (timeout / 1000) + (ti.tv_nsec / 1000000000);
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue