diff options
| author | 2021-09-29 16:07:41 -0700 | |
|---|---|---|
| committer | 2021-10-01 16:20:36 -0700 | |
| commit | 27a8bc7cb78be532ed0e0b7f8ff0caee7b6fec64 (patch) | |
| tree | 5a8d23df8d9cff1e7a6e64798bd01a20c3e3a506 /vulkan/libvulkan/api.cpp | |
| parent | 692ae86f088f6c0be9140625b008d838440e035b (diff) | |
libbinder: RPC allow RpcSession to be reusable
Previously, there were two ways setup could fail:
- very quickly (e.g. cannot create fd to poll)
- after some delay (e.g. second connectoin messed up)
In either case, 'false' is returned from setup* funtions. However, in
the second case, if setup* is called again, then it would result in an
abort. When connections fail for unrelated reasons, this sometimes
causes aborts in existing tests.
Two alternatives considered:
- switch to factory-type setup, this seems a bit heavy, chiefly because
typically, only one RpcSession is needed, so it is annoying to have to
create a factory and an object.
- disallow setup* from being called multiple times - this breaks some
of our tests, and it adds work to clients.
Bug: 200737956
Test: manual
Change-Id: Ia6a69a7d2ca6c6835844cd9a90c7d24646a83526
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions