OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/wait_set_dispatcher.h" | 5 #include "mojo/edk/system/wait_set_dispatcher.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <utility> | 10 #include <utility> |
9 | 11 |
10 #include "base/logging.h" | 12 #include "base/logging.h" |
11 #include "mojo/edk/system/awakable.h" | 13 #include "mojo/edk/system/awakable.h" |
12 | 14 |
13 namespace mojo { | 15 namespace mojo { |
14 namespace edk { | 16 namespace edk { |
15 | 17 |
16 class WaitSetDispatcher::Waiter final : public Awakable { | 18 class WaitSetDispatcher::Waiter final : public Awakable { |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 | 275 |
274 base::AutoLock locker(awakable_lock_); | 276 base::AutoLock locker(awakable_lock_); |
275 HandleSignalsState signals_state; | 277 HandleSignalsState signals_state; |
276 signals_state.satisfiable_signals = MOJO_HANDLE_SIGNAL_READABLE; | 278 signals_state.satisfiable_signals = MOJO_HANDLE_SIGNAL_READABLE; |
277 signals_state.satisfied_signals = MOJO_HANDLE_SIGNAL_READABLE; | 279 signals_state.satisfied_signals = MOJO_HANDLE_SIGNAL_READABLE; |
278 awakable_list_.AwakeForStateChange(signals_state); | 280 awakable_list_.AwakeForStateChange(signals_state); |
279 } | 281 } |
280 | 282 |
281 } // namespace edk | 283 } // namespace edk |
282 } // namespace mojo | 284 } // namespace mojo |
OLD | NEW |