| OLD | NEW | 
|---|
| 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/waitable_event.h" | 5 #include "base/synchronization/waitable_event.h" | 
| 6 | 6 | 
| 7 #include "base/synchronization/condition_variable.h" | 7 #include "base/synchronization/condition_variable.h" | 
| 8 #include "base/synchronization/lock.h" | 8 #include "base/synchronization/lock.h" | 
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" | 
| 10 | 10 | 
| 11 // ----------------------------------------------------------------------------- | 11 // ----------------------------------------------------------------------------- | 
| 12 // A WaitableEvent on POSIX is implemented as a wait-list. Currently we don't | 12 // A WaitableEvent on POSIX is implemented as a wait-list. Currently we don't | 
| 13 // support cross-process events (where one process can signal an event which | 13 // support cross-process events (where one process can signal an event which | 
| 14 // others are waiting on). Because of this, we can avoid having one thread per | 14 // others are waiting on). Because of this, we can avoid having one thread per | 
| 15 // listener in several cases. | 15 // listener in several cases. | 
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 395       return true; | 395       return true; | 
| 396     } | 396     } | 
| 397   } | 397   } | 
| 398 | 398 | 
| 399   return false; | 399   return false; | 
| 400 } | 400 } | 
| 401 | 401 | 
| 402 // ----------------------------------------------------------------------------- | 402 // ----------------------------------------------------------------------------- | 
| 403 | 403 | 
| 404 }  // namespace base | 404 }  // namespace base | 
| OLD | NEW | 
|---|