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

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

Issue 1504733002: Implementation of WaitSet for new EDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-waitset-implementation
Patch Set: Add gyp rules. Created 5 years 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/BUILD.gn ('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 "base/callback.h" 10 #include "base/callback.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 MojoDeadline deadline, 77 MojoDeadline deadline,
78 MojoHandleSignalsState* signals_state); 78 MojoHandleSignalsState* signals_state);
79 MojoResult WaitMany(const MojoHandle* handles, 79 MojoResult WaitMany(const MojoHandle* handles,
80 const MojoHandleSignals* signals, 80 const MojoHandleSignals* signals,
81 uint32_t num_handles, 81 uint32_t num_handles,
82 MojoDeadline deadline, 82 MojoDeadline deadline,
83 uint32_t* result_index, 83 uint32_t* result_index,
84 MojoHandleSignalsState* signals_states); 84 MojoHandleSignalsState* signals_states);
85 85
86 // These methods correspond to the API functions defined in 86 // These methods correspond to the API functions defined in
87 // "mojo/public/c/system/wait_set.h":
88 MojoResult CreateWaitSet(MojoHandle* wait_set_handle);
89 MojoResult AddHandle(MojoHandle wait_set_handle,
90 MojoHandle handle,
91 MojoHandleSignals signals);
92 MojoResult RemoveHandle(MojoHandle wait_set_handle,
93 MojoHandle handle);
94 MojoResult GetReadyHandles(MojoHandle wait_set_handle,
95 uint32_t* count,
96 MojoHandle* handles,
97 MojoResult* results,
98 MojoHandleSignalsState* signals_states);
99
100 // These methods correspond to the API functions defined in
87 // "mojo/public/c/system/message_pipe.h": 101 // "mojo/public/c/system/message_pipe.h":
88 MojoResult CreateMessagePipe( 102 MojoResult CreateMessagePipe(
89 const MojoCreateMessagePipeOptions* options, 103 const MojoCreateMessagePipeOptions* options,
90 MojoHandle* message_pipe_handle0, 104 MojoHandle* message_pipe_handle0,
91 MojoHandle* message_pipe_handle1); 105 MojoHandle* message_pipe_handle1);
92 MojoResult WriteMessage(MojoHandle message_pipe_handle, 106 MojoResult WriteMessage(MojoHandle message_pipe_handle,
93 const void* bytes, 107 const void* bytes,
94 uint32_t num_bytes, 108 uint32_t num_bytes,
95 const MojoHandle* handles, 109 const MojoHandle* handles,
96 uint32_t num_handles, 110 uint32_t num_handles,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 base::Lock mapping_table_lock_; // Protects |mapping_table_|. 184 base::Lock mapping_table_lock_; // Protects |mapping_table_|.
171 MappingTable mapping_table_; 185 MappingTable mapping_table_;
172 186
173 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); 187 MOJO_DISALLOW_COPY_AND_ASSIGN(Core);
174 }; 188 };
175 189
176 } // namespace edk 190 } // namespace edk
177 } // namespace mojo 191 } // namespace mojo
178 192
179 #endif // MOJO_EDK_SYSTEM_CORE_H_ 193 #endif // MOJO_EDK_SYSTEM_CORE_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/BUILD.gn ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698