Skip to content

Commit

Permalink
Remove XP Condition Variable Affordances
Browse files Browse the repository at this point in the history
XP and Vista are no longer supported in Chromium.

BUG=579196

Review URL: https://codereview.chromium.org/1860353002

Cr-Commit-Position: refs/heads/master@{#385665}
  • Loading branch information
robliao authored and Commit bot committed Apr 7, 2016
1 parent bce1b56 commit f11a6c0
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 644 deletions.
12 changes: 8 additions & 4 deletions base/synchronization/condition_variable.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,12 @@
#include <pthread.h>
#endif

#if defined(OS_WIN)
#include <windows.h>
#endif

namespace base {

class ConditionVarImpl;
class TimeDelta;

class BASE_EXPORT ConditionVariable {
Expand All @@ -100,14 +103,15 @@ class BASE_EXPORT ConditionVariable {
private:

#if defined(OS_WIN)
ConditionVarImpl* impl_;
CONDITION_VARIABLE cv_;
CRITICAL_SECTION* const crit_sec_;
#elif defined(OS_POSIX)
pthread_cond_t condition_;
pthread_mutex_t* user_mutex_;
#if DCHECK_IS_ON()
base::Lock* user_lock_; // Needed to adjust shadow lock state on wait.
#endif

#if DCHECK_IS_ON() && (defined(OS_WIN) || defined(OS_POSIX))
base::Lock* const user_lock_; // Needed to adjust shadow lock state on wait.
#endif

DISALLOW_COPY_AND_ASSIGN(ConditionVariable);
Expand Down
Loading

0 comments on commit f11a6c0

Please sign in to comment.