OLD | NEW |
1 // Copyright (c) 2009 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 #ifndef BASE_WAITABLE_EVENT_H_ | 5 #ifndef BASE_SYNCHRONIZATION_WAITABLE_EVENT_H_ |
6 #define BASE_WAITABLE_EVENT_H_ | 6 #define BASE_SYNCHRONIZATION_WAITABLE_EVENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 | 10 |
11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
12 #include <windows.h> | 12 #include <windows.h> |
13 #endif | 13 #endif |
14 | 14 |
15 #if defined(OS_POSIX) | 15 #if defined(OS_POSIX) |
16 #include <list> | 16 #include <list> |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 typedef std::pair<WaitableEvent*, size_t> WaiterAndIndex; | 169 typedef std::pair<WaitableEvent*, size_t> WaiterAndIndex; |
170 static size_t EnqueueMany(WaiterAndIndex* waitables, | 170 static size_t EnqueueMany(WaiterAndIndex* waitables, |
171 size_t count, Waiter* waiter); | 171 size_t count, Waiter* waiter); |
172 #endif | 172 #endif |
173 | 173 |
174 DISALLOW_COPY_AND_ASSIGN(WaitableEvent); | 174 DISALLOW_COPY_AND_ASSIGN(WaitableEvent); |
175 }; | 175 }; |
176 | 176 |
177 } // namespace base | 177 } // namespace base |
178 | 178 |
179 #endif // BASE_WAITABLE_EVENT_H_ | 179 #endif // BASE_SYNCHRONIZATION_WAITABLE_EVENT_H_ |
OLD | NEW |