| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef BASE_WAITABLE_EVENT_H_ | 5 #ifndef BASE_WAITABLE_EVENT_H_ |
| 6 #define BASE_WAITABLE_EVENT_H_ | 6 #define BASE_WAITABLE_EVENT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| 11 #include <windows.h> | 11 #include <windows.h> |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 #if defined(OS_POSIX) | 14 #if defined(OS_POSIX) |
| 15 #include <list> | 15 #include <list> |
| 16 #include <utility> | 16 #include <utility> |
| 17 #include "base/condition_variable.h" | 17 #include "base/condition_variable.h" |
| 18 #include "base/lock.h" | 18 #include "base/lock.h" |
| 19 #include "base/ref_counted.h" | |
| 20 #endif | 19 #endif |
| 21 | 20 |
| 22 #include "base/message_loop.h" | 21 #include "base/message_loop.h" |
| 23 | 22 |
| 24 namespace base { | 23 namespace base { |
| 25 | 24 |
| 26 // This replaces INFINITE from Win32 | 25 // This replaces INFINITE from Win32 |
| 27 static const int kNoTimeout = -1; | 26 static const int kNoTimeout = -1; |
| 28 | 27 |
| 29 class TimeDelta; | 28 class TimeDelta; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 const bool manual_reset_; | 149 const bool manual_reset_; |
| 151 std::list<Waiter*> waiters_; | 150 std::list<Waiter*> waiters_; |
| 152 #endif | 151 #endif |
| 153 | 152 |
| 154 DISALLOW_COPY_AND_ASSIGN(WaitableEvent); | 153 DISALLOW_COPY_AND_ASSIGN(WaitableEvent); |
| 155 }; | 154 }; |
| 156 | 155 |
| 157 } // namespace base | 156 } // namespace base |
| 158 | 157 |
| 159 #endif // BASE_WAITABLE_EVENT_H_ | 158 #endif // BASE_WAITABLE_EVENT_H_ |
| OLD | NEW |