Browse Source

Cond fix in win

mikymod 12 years ago
parent
commit
bd4c9c6ffe
1 changed files with 1 additions and 6 deletions
  1. 1 6
      src/os/win/Cond.cpp

+ 1 - 6
src/os/win/Cond.cpp

@@ -48,12 +48,7 @@ void Cond::signal()
 
 void Cond::wait(Mutex& mutex)
 {
-	CRITICAL_SECTION cs = mutex.handle();
-	// 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 
+	SleepConditionVariableCS(&m_cond, &mutex.m_cs, 5000);
 }
 
 } // namespace os