|
Mojo C++ bindings: support sync methods - part 2
This CL introduces the correct re-entrancy behavior: when a sync call is waiting
for response, allow incoming sync requests on the same thread to re-enter, async
messages are queued until the sync call completes.
The following will be in future CLs:
- Support sync calls with associated interfaces.
BUG= 577699
Committed: https://crrev.com/083f46638041ba7d7620e47a7f9edf06982a9340
Cr-Commit-Position: refs/heads/master@{#376751}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+725 lines, -92 lines) |
Patch |
|
M |
mojo/mojo_public.gyp
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/binding_state.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/connector.h
|
View
|
1
|
3 chunks |
+34 lines, -6 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/connector.cc
|
View
|
1
|
8 chunks |
+89 lines, -22 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/interface_ptr_state.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/router.h
|
View
|
1
2
|
4 chunks |
+31 lines, -5 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/router.cc
|
View
|
1
2
3
4
5
|
8 chunks |
+100 lines, -28 lines |
0 comments
|
Download
|
|
A |
mojo/public/cpp/bindings/lib/sync_handle_watcher.h
|
View
|
1
2
3
|
1 chunk |
+73 lines, -0 lines |
0 comments
|
Download
|
|
A |
mojo/public/cpp/bindings/lib/sync_handle_watcher.cc
|
View
|
1
|
1 chunk |
+124 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/message.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/tests/router_unittest.cc
|
View
|
|
7 chunks |
+14 lines, -12 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/tests/sync_method_unittest.cc
|
View
|
1
|
3 chunks |
+228 lines, -13 lines |
0 comments
|
Download
|
|
M |
mojo/public/interfaces/bindings/tests/test_sync_methods.mojom
|
View
|
|
1 chunk |
+13 lines, -3 lines |
0 comments
|
Download
|
|
M |
mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/tools/bindings/generators/mojom_cpp_generator.py
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/tools/bindings/pylib/mojom/generate/module.py
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
Total messages: 21 (10 generated)
|