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

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

Issue 2060943007: Make it possible to remove an Awakable with a specific "context" from a Dispatcher. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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/local_message_pipe_endpoint.cc ('k') | mojo/edk/system/message_pipe.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_MESSAGE_PIPE_H_ 5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_
6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_ 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 HandleSignalsState GetHandleSignalsState(unsigned port) const; 101 HandleSignalsState GetHandleSignalsState(unsigned port) const;
102 MojoResult AddAwakable(unsigned port, 102 MojoResult AddAwakable(unsigned port,
103 Awakable* awakable, 103 Awakable* awakable,
104 MojoHandleSignals signals, 104 MojoHandleSignals signals,
105 bool force, 105 bool force,
106 uint64_t context, 106 uint64_t context,
107 HandleSignalsState* signals_state); 107 HandleSignalsState* signals_state);
108 void RemoveAwakable(unsigned port, 108 void RemoveAwakable(unsigned port,
109 Awakable* awakable, 109 Awakable* awakable,
110 HandleSignalsState* signals_state); 110 HandleSignalsState* signals_state);
111 void RemoveAwakableWithContext(unsigned port,
112 Awakable* awakable,
113 uint64_t context,
114 HandleSignalsState* signals_state);
111 void StartSerialize(unsigned port, 115 void StartSerialize(unsigned port,
112 Channel* channel, 116 Channel* channel,
113 size_t* max_size, 117 size_t* max_size,
114 size_t* max_platform_handles); 118 size_t* max_platform_handles);
115 bool EndSerialize( 119 bool EndSerialize(
116 unsigned port, 120 unsigned port,
117 Channel* channel, 121 Channel* channel,
118 void* destination, 122 void* destination,
119 size_t* actual_size, 123 size_t* actual_size,
120 std::vector<platform::ScopedPlatformHandle>* platform_handles); 124 std::vector<platform::ScopedPlatformHandle>* platform_handles);
(...skipping 29 matching lines...) Expand all
150 mutable util::Mutex mutex_; 154 mutable util::Mutex mutex_;
151 std::unique_ptr<MessagePipeEndpoint> endpoints_[2] MOJO_GUARDED_BY(mutex_); 155 std::unique_ptr<MessagePipeEndpoint> endpoints_[2] MOJO_GUARDED_BY(mutex_);
152 156
153 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipe); 157 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipe);
154 }; 158 };
155 159
156 } // namespace system 160 } // namespace system
157 } // namespace mojo 161 } // namespace mojo
158 162
159 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_ 163 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/local_message_pipe_endpoint.cc ('k') | mojo/edk/system/message_pipe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698