Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: mojo/edk/system/wait_set_dispatcher.h

Issue 2100553002: Add Core methods for wait set. (Closed) Base URL: https://github.com/domokit/mojo.git@work790_wait_set_5.4
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/edk/system/dispatcher.cc ('k') | mojo/edk/system/wait_set_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « mojo/edk/system/dispatcher.cc ('k') | mojo/edk/system/wait_set_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698