OLD | NEW |
1 // Copyright (c) 2006-2008 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/waitable_event.h" | 5 #include "base/synchronization/waitable_event.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/time.h" | 11 #include "base/time.h" |
12 | 12 |
13 namespace base { | 13 namespace base { |
14 | 14 |
15 WaitableEvent::WaitableEvent(bool manual_reset, bool signaled) | 15 WaitableEvent::WaitableEvent(bool manual_reset, bool signaled) |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 INFINITE); // no timeout | 90 INFINITE); // no timeout |
91 if (result >= WAIT_OBJECT_0 + count) { | 91 if (result >= WAIT_OBJECT_0 + count) { |
92 NOTREACHED() << "WaitForMultipleObjects failed: " << GetLastError(); | 92 NOTREACHED() << "WaitForMultipleObjects failed: " << GetLastError(); |
93 return 0; | 93 return 0; |
94 } | 94 } |
95 | 95 |
96 return result - WAIT_OBJECT_0; | 96 return result - WAIT_OBJECT_0; |
97 } | 97 } |
98 | 98 |
99 } // namespace base | 99 } // namespace base |
OLD | NEW |