minor condition change

there's no guarantee that the function will return 1 on success, at least not in the documentation
This commit is contained in:
chinhodado committed 2014-02-17 20:46:51 -05:00
1 parent 7b88bd7918
commit ade958043c
1 file changed
+1 -1
+1 -1
View File
@@ -96,7 +96,7 @@ public:
bool trylock() {
#ifdef _WIN32
return TryEnterCriticalSection(&mut_) == TRUE;
return TryEnterCriticalSection(&mut_) != FALSE;
#else
return pthread_mutex_trylock(&mut_) != EBUSY;
#endif