| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_ | 5 #ifndef MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_ |
| 6 #define MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_ | 6 #define MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 WaitSetDispatcher(); | 103 WaitSetDispatcher(); |
| 104 ~WaitSetDispatcher() override; | 104 ~WaitSetDispatcher() override; |
| 105 | 105 |
| 106 // |Dispatcher| protected methods: | 106 // |Dispatcher| protected methods: |
| 107 void CloseImplNoLock() override; | 107 void CloseImplNoLock() override; |
| 108 util::RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock( | 108 util::RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock( |
| 109 MessagePipe* message_pipe, | 109 MessagePipe* message_pipe, |
| 110 unsigned port) override; | 110 unsigned port) override; |
| 111 MojoResult WaitSetAddImpl(UserPointer<const MojoWaitSetAddOptions> options, | 111 MojoResult WaitSetAddImpl( |
| 112 util::RefPtr<Dispatcher>&& dispatcher, | 112 util::RefPtr<Dispatcher>&& dispatcher, |
| 113 MojoHandleSignals signals, | 113 MojoHandleSignals signals, |
| 114 uint64_t cookie) override; | 114 uint64_t cookie, |
| 115 UserPointer<const MojoWaitSetAddOptions> options) override; |
| 115 MojoResult WaitSetRemoveImpl(uint64_t cookie) override; | 116 MojoResult WaitSetRemoveImpl(uint64_t cookie) override; |
| 116 MojoResult WaitSetWaitImpl(MojoDeadline deadline, | 117 MojoResult WaitSetWaitImpl(MojoDeadline deadline, |
| 117 UserPointer<uint32_t> num_results, | 118 UserPointer<uint32_t> num_results, |
| 118 UserPointer<MojoWaitSetResult> results, | 119 UserPointer<MojoWaitSetResult> results, |
| 119 UserPointer<uint32_t> max_results) override; | 120 UserPointer<uint32_t> max_results) override; |
| 120 | 121 |
| 121 // |Awakable| implementation: | 122 // |Awakable| implementation: |
| 122 void Awake(uint64_t context, | 123 void Awake(uint64_t context, |
| 123 AwakeReason reason, | 124 AwakeReason reason, |
| 124 const HandleSignalsState& signals_state) override; | 125 const HandleSignalsState& signals_state) override; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 141 // Size of the above list. | 142 // Size of the above list. |
| 142 size_t triggered_count_ MOJO_GUARDED_BY(mutex()) = 0u; | 143 size_t triggered_count_ MOJO_GUARDED_BY(mutex()) = 0u; |
| 143 | 144 |
| 144 MOJO_DISALLOW_COPY_AND_ASSIGN(WaitSetDispatcher); | 145 MOJO_DISALLOW_COPY_AND_ASSIGN(WaitSetDispatcher); |
| 145 }; | 146 }; |
| 146 | 147 |
| 147 } // namespace system | 148 } // namespace system |
| 148 } // namespace mojo | 149 } // namespace mojo |
| 149 | 150 |
| 150 #endif // MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_ | 151 #endif // MOJO_EDK_SYSTEM_WAIT_SET_DISPATCHER_H_ |
| OLD | NEW |