|
[mojo-edk] Add explicit message object APIs
Adds several new system API methods:
- MojoAllocMessage: Allocates a new message object
for a fixed payload size and set of handles
- MojoFreeMessage: Frees a message object
- MojoGetMessageBuffer: Acquires a mutable buffer
address to manipulate message object payload
- MojoWriteMessageNew: Writes a message object to
a message pipe, relinquishing ownership
- MojoReadMessageNew: Reads a message object from a
message pipe, taking ownership
Message objects themselves are respresented in the public
API by an opaque MojoMessageHandle.
The purpose of these APIs is to encapsulate ownership
transfer of message buffers, allowing us to avoid several
redundant copies that are forced by MojoWriteMessage()
and MojoReadMessage() design.
BUG= 597379
Committed: https://crrev.com/72d05a46b2636d9d8cbf9a75b1c5d2bc2d8abe15
Cr-Commit-Position: refs/heads/master@{#389859}
Total comments: 18
Total comments: 4
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+817 lines, -321 lines) |
Patch |
 |
M |
mojo/edk/embedder/entrypoints.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+32 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/js/core.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/js/tests/connection_tests.js
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/core.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/core.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+129 lines, -38 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/core_test_base.cc
|
View
|
|
2 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/core_unittest.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+32 lines, -28 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/dispatcher.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/dispatcher.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
A |
mojo/edk/system/message_for_transit.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+113 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/edk/system/message_for_transit.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+136 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/message_pipe_dispatcher.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/message_pipe_dispatcher.cc
|
View
|
1
2
3
4
5
6
7
8
|
9 chunks |
+51 lines, -198 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/message_pipe_unittest.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+67 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/wait_set_dispatcher_unittest.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+34 lines, -12 lines |
0 comments
|
Download
|
 |
M |
mojo/mojo_edk.gyp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/c/system/message_pipe.h
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+114 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/lib/connector.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
mojo/public/platform/native/system_thunks.h
|
View
|
1
2
3
4
5
|
2 chunks |
+22 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/public/platform/native/system_thunks.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
Total messages: 33 (13 generated)
|