New issue
Advanced search Search tips

Issue 619037 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2016
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Windows Condition Variable Checks for WAIT_TIMEOUT instead of ERROR_TIMEOUT

Project Member Reported by robliao@chromium.org, Jun 10 2016

Issue description

A code review revealed that the Windows condition variable was checking for WAIT_TIMEOUT when this should have been ERROR_TIMEOUT.

This bug has been there since the SleepConditionVariableCS days.

This should have been ERROR_TIMEOUT as WAIT_TIMEOUT only applies to WaitFor[Single|Multiple]Object[s][Ex]
 
Code review link: https://codereview.chromium.org/2047433004/diff/1/base/synchronization/condition_variable_win.cc#newcode39

Since this code review is no longer going forward, this will be fixed separately.
Project Member

Comment 2 by bugdroid1@chromium.org, Jun 10 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6162e2705ec3496cddb769e08c4c7fb24f7a85b3

commit 6162e2705ec3496cddb769e08c4c7fb24f7a85b3
Author: robliao <robliao@chromium.org>
Date: Fri Jun 10 21:46:18 2016

Fix Windows Condition Variable GetLastError Check

During the SleepConditionVariableCS days, the GetLastError was checked
against WAIT_TIMEOUT. This should have been ERROR_TIMEOUT per the docs.

WAIT_TIMEOUT applies to functions like WaitForSingleObject (and more).

BUG= 619037 

Review-Url: https://codereview.chromium.org/2053403002
Cr-Commit-Position: refs/heads/master@{#399279}

[modify] https://crrev.com/6162e2705ec3496cddb769e08c4c7fb24f7a85b3/base/synchronization/condition_variable_win.cc

Status: Fixed (was: Started)
Project Member

Comment 4 by bugdroid1@chromium.org, Jun 15 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6162e2705ec3496cddb769e08c4c7fb24f7a85b3

commit 6162e2705ec3496cddb769e08c4c7fb24f7a85b3
Author: robliao <robliao@chromium.org>
Date: Fri Jun 10 21:46:18 2016

Fix Windows Condition Variable GetLastError Check

During the SleepConditionVariableCS days, the GetLastError was checked
against WAIT_TIMEOUT. This should have been ERROR_TIMEOUT per the docs.

WAIT_TIMEOUT applies to functions like WaitForSingleObject (and more).

BUG= 619037 

Review-Url: https://codereview.chromium.org/2053403002
Cr-Commit-Position: refs/heads/master@{#399279}

[modify] https://crrev.com/6162e2705ec3496cddb769e08c4c7fb24f7a85b3/base/synchronization/condition_variable_win.cc

Labels: Hotlist-Fixit

Sign in to add a comment