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

Side by Side Diff: mojo/edk/system/message_pipe_dispatcher.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/message_pipe.cc ('k') | mojo/edk/system/message_pipe_dispatcher.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_DISPATCHER_H_ 5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
7 7
8 #include "mojo/edk/system/dispatcher.h" 8 #include "mojo/edk/system/dispatcher.h"
9 #include "mojo/edk/system/memory.h" 9 #include "mojo/edk/system/memory.h"
10 #include "mojo/edk/util/ref_ptr.h" 10 #include "mojo/edk/util/ref_ptr.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 uint32_t* num_handles, 96 uint32_t* num_handles,
97 MojoReadMessageFlags flags) override; 97 MojoReadMessageFlags flags) override;
98 HandleSignalsState GetHandleSignalsStateImplNoLock() const override; 98 HandleSignalsState GetHandleSignalsStateImplNoLock() const override;
99 MojoResult AddAwakableImplNoLock(Awakable* awakable, 99 MojoResult AddAwakableImplNoLock(Awakable* awakable,
100 MojoHandleSignals signals, 100 MojoHandleSignals signals,
101 bool force, 101 bool force,
102 uint64_t context, 102 uint64_t context,
103 HandleSignalsState* signals_state) override; 103 HandleSignalsState* signals_state) override;
104 void RemoveAwakableImplNoLock(Awakable* awakable, 104 void RemoveAwakableImplNoLock(Awakable* awakable,
105 HandleSignalsState* signals_state) override; 105 HandleSignalsState* signals_state) override;
106 void RemoveAwakableWithContextImplNoLock(
107 Awakable* awakable,
108 uint64_t context,
109 HandleSignalsState* signals_state) override;
106 void StartSerializeImplNoLock(Channel* channel, 110 void StartSerializeImplNoLock(Channel* channel,
107 size_t* max_size, 111 size_t* max_size,
108 size_t* max_platform_handles) override 112 size_t* max_platform_handles) override
109 MOJO_NOT_THREAD_SAFE; 113 MOJO_NOT_THREAD_SAFE;
110 bool EndSerializeAndCloseImplNoLock( 114 bool EndSerializeAndCloseImplNoLock(
111 Channel* channel, 115 Channel* channel,
112 void* destination, 116 void* destination,
113 size_t* actual_size, 117 size_t* actual_size,
114 std::vector<platform::ScopedPlatformHandle>* platform_handles) override 118 std::vector<platform::ScopedPlatformHandle>* platform_handles) override
115 MOJO_NOT_THREAD_SAFE; 119 MOJO_NOT_THREAD_SAFE;
116 120
117 // This will be null if closed. 121 // This will be null if closed.
118 util::RefPtr<MessagePipe> message_pipe_ MOJO_GUARDED_BY(mutex()); 122 util::RefPtr<MessagePipe> message_pipe_ MOJO_GUARDED_BY(mutex());
119 unsigned port_ MOJO_GUARDED_BY(mutex()); 123 unsigned port_ MOJO_GUARDED_BY(mutex());
120 124
121 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher); 125 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher);
122 }; 126 };
123 127
124 } // namespace system 128 } // namespace system
125 } // namespace mojo 129 } // namespace mojo
126 130
127 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ 131 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/message_pipe.cc ('k') | mojo/edk/system/message_pipe_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698