commit | 268458c09e3d82210b9dc298b1b95055d5d808df | [log] [tgz] |
---|---|---|
author | Alice Ryhl <aliceryhl@google.com> | Wed Sep 15 12:56:10 2021 +0000 |
committer | Andrei Homescu <ahomescu@google.com> | Thu Oct 14 18:59:42 2021 +0000 |
tree | e86ccd80d3611aad880daa6b95c4d07ccd6d83e0 | |
parent | d8b3d5f05695af40955c2d3e1d40c51db437f977 [diff] |
binder_rs: add OwnedParcel This adds a new binder::OwnedParcel type that exclusively contains an owned parcel, and implements Send so it can be sent between threads. Parcel cannot implement Send because Parcel::Borrowed could point to thread-local C++ values, e.g., a Parcel stored on the stack. This change is a prerequisite for both async and thread-safe ParcelableHolder. Bug: 200676345 Test: atest aidl_integration_test Change-Id: I1a7b965d26cb5350576450debd7d058a6451b1f0