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

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

Issue 2088833003: Add different behavior to AwakableList for "persistent" vs "one-shot" awakables. (Closed) Base URL: https://github.com/domokit/mojo.git@work793_wait_set_4.5
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 MojoResult ReadMessage(unsigned port, 95 MojoResult ReadMessage(unsigned port,
96 UserPointer<void> bytes, 96 UserPointer<void> bytes,
97 UserPointer<uint32_t> num_bytes, 97 UserPointer<uint32_t> num_bytes,
98 HandleVector* handles, 98 HandleVector* handles,
99 uint32_t* num_handles, 99 uint32_t* num_handles,
100 MojoReadMessageFlags flags); 100 MojoReadMessageFlags flags);
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 uint64_t context, 104 uint64_t context,
105 bool force, 105 bool persistent,
106 MojoHandleSignals signals, 106 MojoHandleSignals signals,
107 HandleSignalsState* signals_state); 107 HandleSignalsState* signals_state);
108 void RemoveAwakable(unsigned port, 108 void RemoveAwakable(unsigned port,
109 bool match_context, 109 bool match_context,
110 Awakable* awakable, 110 Awakable* awakable,
111 uint64_t context, 111 uint64_t context,
112 HandleSignalsState* signals_state); 112 HandleSignalsState* signals_state);
113 void StartSerialize(unsigned port, 113 void StartSerialize(unsigned port,
114 Channel* channel, 114 Channel* channel,
115 size_t* max_size, 115 size_t* max_size,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 mutable util::Mutex mutex_; 152 mutable util::Mutex mutex_;
153 std::unique_ptr<MessagePipeEndpoint> endpoints_[2] MOJO_GUARDED_BY(mutex_); 153 std::unique_ptr<MessagePipeEndpoint> endpoints_[2] MOJO_GUARDED_BY(mutex_);
154 154
155 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipe); 155 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipe);
156 }; 156 };
157 157
158 } // namespace system 158 } // namespace system
159 } // namespace mojo 159 } // namespace mojo
160 160
161 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_ 161 #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