commit | 875febefc9142075a8db93df420e10803cb8c8ba | [log] [tgz] |
---|---|---|
author | Ben Lawson <benlawson@google.com> | Mon May 02 18:10:29 2022 +0000 |
committer | Commit Bot <commit-bot@chromium.org> | Mon May 02 18:10:29 2022 +0000 |
tree | 097078828688cc71f00b1c64cca44a76565b6189 | |
parent | af978c235288eaa33550ce8e3957dcaae5d548ad [diff] |
[bt][l2cap] Use unique_ptr<L2cap> instead of RefPtr<L2cap> Replace instances of fbl::RefPtr<L2cap> with std::unique_ptr<L2cap> (in Adapter) or L2cap*. Now that L2cap is not shared across threads, ownership is better modeled with a unique_ptr<L2cap> owned by Adapter and weak pointers passed to other classes. Bug: 98304 Test: fx test //src/connectivity/bluetooth/core/bt-host Change-Id: I0e70502b7063b3b5aa368488a4fad790842b228e Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/670689 Reviewed-by: Lucas Jenkins <lucasjenkins@google.com> Reviewed-by: Faraaz Sareshwala <fsareshwala@google.com> Commit-Queue: Ben Lawson <benlawson@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.