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

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

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/awakable_list_unittest.cc ('k') | mojo/edk/system/core.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 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 #ifndef MOJO_EDK_SYSTEM_CORE_H_ 5 #ifndef MOJO_EDK_SYSTEM_CORE_H_
6 #define MOJO_EDK_SYSTEM_CORE_H_ 6 #define MOJO_EDK_SYSTEM_CORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 friend bool internal::ShutdownCheckNoLeaks(Core*); 223 friend bool internal::ShutdownCheckNoLeaks(Core*);
224 224
225 // Internal implementation of |Wait()| and |WaitMany()|; doesn't do basic 225 // Internal implementation of |Wait()| and |WaitMany()|; doesn't do basic
226 // validation of arguments. |*result_index| is only set if the result (whether 226 // validation of arguments. |*result_index| is only set if the result (whether
227 // success or failure) applies to a specific handle, so its value should be 227 // success or failure) applies to a specific handle, so its value should be
228 // preinitialized to |static_cast<uint32_t>(-1)|. 228 // preinitialized to |static_cast<uint32_t>(-1)|.
229 MojoResult WaitManyInternal(const MojoHandle* handles, 229 MojoResult WaitManyInternal(const MojoHandle* handles,
230 const MojoHandleSignals* signals, 230 const MojoHandleSignals* signals,
231 uint32_t num_handles, 231 uint32_t num_handles,
232 MojoDeadline deadline, 232 MojoDeadline deadline,
233 uint32_t* result_index, 233 uint64_t* result_index,
234 HandleSignalsState* signals_states); 234 HandleSignalsState* signals_states);
235 235
236 embedder::PlatformSupport* const platform_support_; 236 embedder::PlatformSupport* const platform_support_;
237 237
238 // TODO(vtl): |handle_table_mutex_| should be a reader-writer lock (if only we 238 // TODO(vtl): |handle_table_mutex_| should be a reader-writer lock (if only we
239 // had them). 239 // had them).
240 util::Mutex handle_table_mutex_; 240 util::Mutex handle_table_mutex_;
241 HandleTable handle_table_ MOJO_GUARDED_BY(handle_table_mutex_); 241 HandleTable handle_table_ MOJO_GUARDED_BY(handle_table_mutex_);
242 242
243 util::Mutex mapping_table_mutex_; 243 util::Mutex mapping_table_mutex_;
244 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); 244 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_);
245 245
246 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); 246 MOJO_DISALLOW_COPY_AND_ASSIGN(Core);
247 }; 247 };
248 248
249 } // namespace system 249 } // namespace system
250 } // namespace mojo 250 } // namespace mojo
251 251
252 #endif // MOJO_EDK_SYSTEM_CORE_H_ 252 #endif // MOJO_EDK_SYSTEM_CORE_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/awakable_list_unittest.cc ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698