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

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

Issue 1429553002: API definition for WaitSet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update API. Created 5 years, 1 month 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
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 THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_CORE_H_ 5 #ifndef THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_CORE_H_
6 #define THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_CORE_H_ 6 #define THIRD_PARTY_MOJO_SRC_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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 MojoDeadline deadline, 81 MojoDeadline deadline,
82 UserPointer<MojoHandleSignalsState> signals_state); 82 UserPointer<MojoHandleSignalsState> signals_state);
83 MojoResult WaitMany(UserPointer<const MojoHandle> handles, 83 MojoResult WaitMany(UserPointer<const MojoHandle> handles,
84 UserPointer<const MojoHandleSignals> signals, 84 UserPointer<const MojoHandleSignals> signals,
85 uint32_t num_handles, 85 uint32_t num_handles,
86 MojoDeadline deadline, 86 MojoDeadline deadline,
87 UserPointer<uint32_t> result_index, 87 UserPointer<uint32_t> result_index,
88 UserPointer<MojoHandleSignalsState> signals_states); 88 UserPointer<MojoHandleSignalsState> signals_states);
89 89
90 // These methods correspond to the API functions defined in 90 // These methods correspond to the API functions defined in
91 // "third_party/mojo/src/mojo/public/c/system/wait_set.h":
92 MojoResult CreateWaitSet(UserPointer<MojoHandle> wait_set_handle);
93 MojoResult AddWaiter(MojoHandle wait_set_handle,
94 MojoHandle handle,
95 MojoHandleSignals signals);
96 MojoResult RemoveWaiter(MojoHandle wait_set_handle,
97 MojoHandle handle);
98 MojoResult GetReadyHandle(MojoHandle wait_set_handle,
99 UserPointer<MojoHandle> handle,
100 UserPointer<MojoHandleSignalsState> signals_state);
101
102 // These methods correspond to the API functions defined in
91 // "third_party/mojo/src/mojo/public/c/system/message_pipe.h": 103 // "third_party/mojo/src/mojo/public/c/system/message_pipe.h":
92 MojoResult CreateMessagePipe( 104 MojoResult CreateMessagePipe(
93 UserPointer<const MojoCreateMessagePipeOptions> options, 105 UserPointer<const MojoCreateMessagePipeOptions> options,
94 UserPointer<MojoHandle> message_pipe_handle0, 106 UserPointer<MojoHandle> message_pipe_handle0,
95 UserPointer<MojoHandle> message_pipe_handle1); 107 UserPointer<MojoHandle> message_pipe_handle1);
96 MojoResult WriteMessage(MojoHandle message_pipe_handle, 108 MojoResult WriteMessage(MojoHandle message_pipe_handle,
97 UserPointer<const void> bytes, 109 UserPointer<const void> bytes,
98 uint32_t num_bytes, 110 uint32_t num_bytes,
99 UserPointer<const MojoHandle> handles, 111 UserPointer<const MojoHandle> handles,
100 uint32_t num_handles, 112 uint32_t num_handles,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 Mutex mapping_table_mutex_; 186 Mutex mapping_table_mutex_;
175 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); 187 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_);
176 188
177 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); 189 MOJO_DISALLOW_COPY_AND_ASSIGN(Core);
178 }; 190 };
179 191
180 } // namespace system 192 } // namespace system
181 } // namespace mojo 193 } // namespace mojo
182 194
183 #endif // THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_CORE_H_ 195 #endif // THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698