Merge pull request #48 from Xele02/master

Mutex cond_wait not working
This commit is contained in:
Henrik Rydgård committed 2013-02-17 02:23:45 -08:00
commit f7db8ff0be
1 file changed
+3 -1
+3 -1
View File
@@ -129,7 +129,9 @@ public:
ResetEvent(event_); // necessary?
// mtx.lock();
#else
pthread_mutex_lock(&mtx.native_handle());
pthread_cond_wait(&event_, &mtx.native_handle());
pthread_mutex_unlock(&mtx.native_handle());
#endif
}
@@ -139,4 +141,4 @@ private:
#else
pthread_cond_t event_;
#endif
};
};