|
Mojo C++ bindings: support sync methods - part 1.
This CL:
- adds support for [Sync] attribute;
- generates C++ sync method signatures;
- does the simplest thing to block and wait for results of sync calls. (Allows
any messages of the same interface ptr to re-enter; disallows any messages of
other message pipes to re-enter.)
The following will be in future CLs:
- Change the re-entrancy behavior.
- Support sync calls with associated interfaces.
BUG= 577699
Committed: https://crrev.com/904b45f35fb925bab31d25e43732a947385460b6
Cr-Commit-Position: refs/heads/master@{#376023}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+361 lines, -38 lines) |
Patch |
|
M |
mojo/mojo_edk_tests.gyp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
mojo/mojo_public.gyp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/interface_endpoint_client.cc
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/message_builder.h
|
View
|
|
2 chunks |
+17 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/message_internal.h
|
View
|
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/router.h
|
View
|
|
3 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/router.cc
|
View
|
|
5 chunks |
+47 lines, -20 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/tests/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
mojo/public/cpp/bindings/tests/sync_method_unittest.cc
|
View
|
|
1 chunk |
+135 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/interfaces/bindings/tests/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
mojo/public/interfaces/bindings/tests/test_sync_methods.mojom
|
View
|
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl
|
View
|
|
8 chunks |
+82 lines, -8 lines |
0 comments
|
Download
|
|
M |
mojo/public/tools/bindings/generators/cpp_templates/interface_macros.tmpl
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/tools/bindings/generators/cpp_templates/interface_proxy_declaration.tmpl
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
mojo/public/tools/bindings/pylib/mojom/generate/data.py
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/tools/bindings/pylib/mojom/generate/module.py
|
View
|
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 8 (3 generated)
|