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

Side by Side Diff: base/synchronization/condition_variable_win.cc

Issue 18119002: Use a direct include of time headers in base/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/synchronization/condition_variable_unittest.cc ('k') | base/synchronization/spin_wait.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/synchronization/condition_variable.h" 5 #include "base/synchronization/condition_variable.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <stack> 8 #include <stack>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
13 #include "base/threading/thread_restrictions.h" 13 #include "base/threading/thread_restrictions.h"
14 #include "base/time.h" 14 #include "base/time/time.h"
15 15
16 namespace { 16 namespace {
17 // We can't use the linker supported delay-load for kernel32 so all this 17 // We can't use the linker supported delay-load for kernel32 so all this
18 // cruft here is to manually late-bind the needed functions. 18 // cruft here is to manually late-bind the needed functions.
19 typedef void (WINAPI *InitializeConditionVariableFn)(PCONDITION_VARIABLE); 19 typedef void (WINAPI *InitializeConditionVariableFn)(PCONDITION_VARIABLE);
20 typedef BOOL (WINAPI *SleepConditionVariableCSFn)(PCONDITION_VARIABLE, 20 typedef BOOL (WINAPI *SleepConditionVariableCSFn)(PCONDITION_VARIABLE,
21 PCRITICAL_SECTION, DWORD); 21 PCRITICAL_SECTION, DWORD);
22 typedef void (WINAPI *WakeConditionVariableFn)(PCONDITION_VARIABLE); 22 typedef void (WINAPI *WakeConditionVariableFn)(PCONDITION_VARIABLE);
23 typedef void (WINAPI *WakeAllConditionVariableFn)(PCONDITION_VARIABLE); 23 typedef void (WINAPI *WakeAllConditionVariableFn)(PCONDITION_VARIABLE);
24 24
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 660
661 void ConditionVariable::Broadcast() { 661 void ConditionVariable::Broadcast() {
662 impl_->Broadcast(); 662 impl_->Broadcast();
663 } 663 }
664 664
665 void ConditionVariable::Signal() { 665 void ConditionVariable::Signal() {
666 impl_->Signal(); 666 impl_->Signal();
667 } 667 }
668 668
669 } // namespace base 669 } // namespace base
OLDNEW
« no previous file with comments | « base/synchronization/condition_variable_unittest.cc ('k') | base/synchronization/spin_wait.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698