commit | 5312ec10e10f9cb0c2b91ac85b402de4e92fe4e6 | [log] [tgz] |
---|---|---|
author | Patrick Williams <pdwilliams@google.com> | Fri Aug 23 16:11:10 2024 -0500 |
committer | Patrick Williams <pdwilliams@google.com> | Sun Aug 25 11:09:40 2024 -0500 |
tree | 396c9c324b3372c41fcb41b0ca37cd96fdb57cd2 | |
parent | 4efab5d7614f1b809ea89c6226d0a0555f79b255 [diff] |
Replace BBQ callback thunks with lambdas The lambdas allows for better StrongPointer/RefBase safety by replacing explicit incStrong/decStrong calls with RAII. Captured StrongPointers are created using sp<T>::fromExisting which helps detect RefBase errors such as creating a StrongPointer from an already deleted RefBase object. Bug: 361588984 Flag: EXEMPT refactor Test: presubmits Change-Id: I1a0c0df882ec2a3f91f857c446418f3fb51689c1