| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "mojo/edk/system/simple_dispatcher.h" | 5 #include "mojo/edk/system/simple_dispatcher.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace mojo { | 9 namespace mojo { |
| 10 namespace system { | 10 namespace system { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 void SimpleDispatcher::RemoveAwakableImplNoLock( | 54 void SimpleDispatcher::RemoveAwakableImplNoLock( |
| 55 Awakable* awakable, | 55 Awakable* awakable, |
| 56 HandleSignalsState* signals_state) { | 56 HandleSignalsState* signals_state) { |
| 57 mutex().AssertHeld(); | 57 mutex().AssertHeld(); |
| 58 awakable_list_.Remove(awakable); | 58 awakable_list_.Remove(awakable); |
| 59 if (signals_state) | 59 if (signals_state) |
| 60 *signals_state = GetHandleSignalsStateImplNoLock(); | 60 *signals_state = GetHandleSignalsStateImplNoLock(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 void SimpleDispatcher::RemoveAwakableWithContextImplNoLock( |
| 64 Awakable* awakable, |
| 65 uint64_t context, |
| 66 HandleSignalsState* signals_state) { |
| 67 mutex().AssertHeld(); |
| 68 awakable_list_.RemoveWithContext(awakable, context); |
| 69 if (signals_state) |
| 70 *signals_state = GetHandleSignalsStateImplNoLock(); |
| 71 } |
| 72 |
| 63 } // namespace system | 73 } // namespace system |
| 64 } // namespace mojo | 74 } // namespace mojo |
| OLD | NEW |