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

Side by Side Diff: mojo/edk/system/local_message_pipe_endpoint.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/dispatcher.cc ('k') | mojo/edk/system/local_message_pipe_endpoint.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_LOCAL_MESSAGE_PIPE_ENDPOINT_H_ 5 #ifndef MOJO_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_
6 #define MOJO_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_ 6 #define MOJO_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_
7 7
8 #include "mojo/edk/system/awakable_list.h" 8 #include "mojo/edk/system/awakable_list.h"
9 #include "mojo/edk/system/handle_signals_state.h" 9 #include "mojo/edk/system/handle_signals_state.h"
10 #include "mojo/edk/system/message_in_transit_queue.h" 10 #include "mojo/edk/system/message_in_transit_queue.h"
(...skipping 26 matching lines...) Expand all
37 uint32_t* num_handles, 37 uint32_t* num_handles,
38 MojoReadMessageFlags flags) override; 38 MojoReadMessageFlags flags) override;
39 HandleSignalsState GetHandleSignalsState() const override; 39 HandleSignalsState GetHandleSignalsState() const override;
40 MojoResult AddAwakable(Awakable* awakable, 40 MojoResult AddAwakable(Awakable* awakable,
41 MojoHandleSignals signals, 41 MojoHandleSignals signals,
42 bool force, 42 bool force,
43 uint64_t context, 43 uint64_t context,
44 HandleSignalsState* signals_state) override; 44 HandleSignalsState* signals_state) override;
45 void RemoveAwakable(Awakable* awakable, 45 void RemoveAwakable(Awakable* awakable,
46 HandleSignalsState* signals_state) override; 46 HandleSignalsState* signals_state) override;
47 void RemoveAwakableWithContext(Awakable* awakable,
48 uint64_t context,
49 HandleSignalsState* signals_state) override;
47 50
48 // This is only to be used by |MessagePipe|: 51 // This is only to be used by |MessagePipe|:
49 MessageInTransitQueue* message_queue() { return &message_queue_; } 52 MessageInTransitQueue* message_queue() { return &message_queue_; }
50 53
51 private: 54 private:
52 bool is_open_; 55 bool is_open_;
53 bool is_peer_open_; 56 bool is_peer_open_;
54 57
55 // Queue of incoming messages. 58 // Queue of incoming messages.
56 MessageInTransitQueue message_queue_; 59 MessageInTransitQueue message_queue_;
57 AwakableList awakable_list_; 60 AwakableList awakable_list_;
58 61
59 MOJO_DISALLOW_COPY_AND_ASSIGN(LocalMessagePipeEndpoint); 62 MOJO_DISALLOW_COPY_AND_ASSIGN(LocalMessagePipeEndpoint);
60 }; 63 };
61 64
62 } // namespace system 65 } // namespace system
63 } // namespace mojo 66 } // namespace mojo
64 67
65 #endif // MOJO_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_ 68 #endif // MOJO_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/dispatcher.cc ('k') | mojo/edk/system/local_message_pipe_endpoint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698