|
|
@@ -49,7 +49,11 @@ void Cond::signal()
|
|
|
void Cond::wait(Mutex& mutex)
|
|
|
{
|
|
|
CRITICAL_SECTION cs = mutex.handle();
|
|
|
- SleepConditionVariableCS(&m_cond, &cs, INFINITE);
|
|
|
+ // Deadlock encountered, maybe the problem is INFINITE
|
|
|
+ // because it can not be set in a thread where a windows is created
|
|
|
+ // or CoInitialize is called.
|
|
|
+ SleepConditionVariableCS(&m_cond, &cs, 5000);
|
|
|
+ //m_cond->ptr == NULL
|
|
|
}
|
|
|
|
|
|
} // namespace os
|