|
|
Support generic synchronization against an IPC::Channel
Exposes a generic way to synchronize against an IPC::Channel's
message FIFO.
A simple Event interface is introduced with a single Signal()
message, and an API is added to Channel/ChannelProxy to create
a new Event pipe, send one end over a Channel for the other
side to signal immediately, and pass the other end to anyone
who wants to synchronize against that Channel's FIFO.
See the new IPC test for a complete working example.
This feature is intended to help satisfy simple ordering
guarantees as we transition to Mojo IPC, while avoiding the
use of associated interfaces where strict per-message
FIFO is not really necessary.
BUG= 361001, 612500
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+408 lines, -15 lines) |
Patch |
 |
M |
ipc/BUILD.gn
|
View
|
1
|
3 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/DEPS
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc.mojom
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_common.cc
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_mojo.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_mojo.cc
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_mojo_unittest.cc
|
View
|
1
|
4 chunks |
+232 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_proxy.h
|
View
|
1
|
3 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_channel_proxy.cc
|
View
|
1
|
2 chunks |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_message_pipe_reader.h
|
View
|
1
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_message_pipe_reader.cc
|
View
|
1
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_test.mojom
|
View
|
1
|
2 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_test_base.h
|
View
|
1
|
2 chunks |
+29 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_test_base.cc
|
View
|
1
|
2 chunks |
+41 lines, -8 lines |
0 comments
|
Download
|
 |
M |
mojo/common/BUILD.gn
|
View
|
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/common/event.mojom
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
Total messages: 11 (9 generated)
|