Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Unified Diff: base/synchronization/condition_variable_win.cc

Issue 2059783002: base: Fix error checked for SleepConditionVariableSRW(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_notify_schedule_1
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/synchronization/condition_variable_win.cc
diff --git a/base/synchronization/condition_variable_win.cc b/base/synchronization/condition_variable_win.cc
index 61c6a715e0eccd8557338193f7f8313ab431b9ce..714572acfb94471bbc8c10a10c4e157750ed1e64 100644
--- a/base/synchronization/condition_variable_win.cc
+++ b/base/synchronization/condition_variable_win.cc
@@ -35,7 +35,7 @@ void ConditionVariable::TimedWait(const TimeDelta& max_time) {
#endif
if (FALSE == SleepConditionVariableSRW(&cv_, srwlock_, timeout, 0)) {
- DCHECK(GetLastError() != WAIT_TIMEOUT);
+ DCHECK(GetLastError() == ERROR_TIMEOUT);
}
#if DCHECK_IS_ON()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698