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

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

Issue 1885663002: EDK: Add implementation of data pipe producer write threshold stuff. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 UserPointer<MojoHandle> handles, 123 UserPointer<MojoHandle> handles,
124 UserPointer<uint32_t> num_handles, 124 UserPointer<uint32_t> num_handles,
125 MojoReadMessageFlags flags); 125 MojoReadMessageFlags flags);
126 126
127 // These methods correspond to the API functions defined in 127 // These methods correspond to the API functions defined in
128 // "mojo/public/c/system/data_pipe.h": 128 // "mojo/public/c/system/data_pipe.h":
129 MojoResult CreateDataPipe( 129 MojoResult CreateDataPipe(
130 UserPointer<const MojoCreateDataPipeOptions> options, 130 UserPointer<const MojoCreateDataPipeOptions> options,
131 UserPointer<MojoHandle> data_pipe_producer_handle, 131 UserPointer<MojoHandle> data_pipe_producer_handle,
132 UserPointer<MojoHandle> data_pipe_consumer_handle); 132 UserPointer<MojoHandle> data_pipe_consumer_handle);
133 MojoResult SetDataPipeProducerOptions(
134 MojoHandle data_pipe_producer_handle,
135 UserPointer<const MojoDataPipeProducerOptions> options);
136 MojoResult GetDataPipeProducerOptions(
137 MojoHandle data_pipe_producer_handle,
138 UserPointer<MojoDataPipeProducerOptions> options,
139 uint32_t options_num_bytes);
133 MojoResult WriteData(MojoHandle data_pipe_producer_handle, 140 MojoResult WriteData(MojoHandle data_pipe_producer_handle,
134 UserPointer<const void> elements, 141 UserPointer<const void> elements,
135 UserPointer<uint32_t> num_bytes, 142 UserPointer<uint32_t> num_bytes,
136 MojoWriteDataFlags flags); 143 MojoWriteDataFlags flags);
137 MojoResult BeginWriteData(MojoHandle data_pipe_producer_handle, 144 MojoResult BeginWriteData(MojoHandle data_pipe_producer_handle,
138 UserPointer<void*> buffer, 145 UserPointer<void*> buffer,
139 UserPointer<uint32_t> buffer_num_bytes, 146 UserPointer<uint32_t> buffer_num_bytes,
140 MojoWriteDataFlags flags); 147 MojoWriteDataFlags flags);
141 MojoResult EndWriteData(MojoHandle data_pipe_producer_handle, 148 MojoResult EndWriteData(MojoHandle data_pipe_producer_handle,
142 uint32_t num_bytes_written); 149 uint32_t num_bytes_written);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 util::Mutex mapping_table_mutex_; 209 util::Mutex mapping_table_mutex_;
203 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); 210 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_);
204 211
205 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); 212 MOJO_DISALLOW_COPY_AND_ASSIGN(Core);
206 }; 213 };
207 214
208 } // namespace system 215 } // namespace system
209 } // namespace mojo 216 } // namespace mojo
210 217
211 #endif // MOJO_EDK_SYSTEM_CORE_H_ 218 #endif // MOJO_EDK_SYSTEM_CORE_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/edk/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698