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

Side by Side Diff: mojo/edk/system/data_pipe_producer_dispatcher.cc

Issue 2056763003: EDK: Change Awakable::Awake()'s context, etc., to be a uint64_t. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 years, 6 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/data_pipe_producer_dispatcher.h ('k') | mojo/edk/system/dispatcher.h » ('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 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/data_pipe_producer_dispatcher.h" 5 #include "mojo/edk/system/data_pipe_producer_dispatcher.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "mojo/edk/system/data_pipe.h" 10 #include "mojo/edk/system/data_pipe.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 HandleSignalsState DataPipeProducerDispatcher::GetHandleSignalsStateImplNoLock() 164 HandleSignalsState DataPipeProducerDispatcher::GetHandleSignalsStateImplNoLock()
165 const { 165 const {
166 mutex().AssertHeld(); 166 mutex().AssertHeld();
167 return data_pipe_->ProducerGetHandleSignalsState(); 167 return data_pipe_->ProducerGetHandleSignalsState();
168 } 168 }
169 169
170 MojoResult DataPipeProducerDispatcher::AddAwakableImplNoLock( 170 MojoResult DataPipeProducerDispatcher::AddAwakableImplNoLock(
171 Awakable* awakable, 171 Awakable* awakable,
172 MojoHandleSignals signals, 172 MojoHandleSignals signals,
173 uint32_t context, 173 uint64_t context,
174 HandleSignalsState* signals_state) { 174 HandleSignalsState* signals_state) {
175 mutex().AssertHeld(); 175 mutex().AssertHeld();
176 return data_pipe_->ProducerAddAwakable(awakable, signals, context, 176 return data_pipe_->ProducerAddAwakable(awakable, signals, context,
177 signals_state); 177 signals_state);
178 } 178 }
179 179
180 void DataPipeProducerDispatcher::RemoveAwakableImplNoLock( 180 void DataPipeProducerDispatcher::RemoveAwakableImplNoLock(
181 Awakable* awakable, 181 Awakable* awakable,
182 HandleSignalsState* signals_state) { 182 HandleSignalsState* signals_state) {
183 mutex().AssertHeld(); 183 mutex().AssertHeld();
(...skipping 16 matching lines...) Expand all
200 AssertHasOneRef(); // Only one ref => no need to take the lock. 200 AssertHasOneRef(); // Only one ref => no need to take the lock.
201 201
202 bool rv = data_pipe_->ProducerEndSerialize(channel, destination, actual_size, 202 bool rv = data_pipe_->ProducerEndSerialize(channel, destination, actual_size,
203 platform_handles); 203 platform_handles);
204 data_pipe_ = nullptr; 204 data_pipe_ = nullptr;
205 return rv; 205 return rv;
206 } 206 }
207 207
208 } // namespace system 208 } // namespace system
209 } // namespace mojo 209 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/data_pipe_producer_dispatcher.h ('k') | mojo/edk/system/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698