Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit cf25dea9 authored by Rahul Arya's avatar Rahul Arya
Browse files

[Private GATT] Refactor to remove Rc<>

This CL introduces the abstraction of SharedBox<>, which
wraps Rc<> to avoid accidental circular references / leaks.

Without this, we could leak AttServerBearers by e.g. storing
an Rc<> to them in a spawned future, or by actually having a
circular reference.

Bug: 255880936
Test: unit

Change-Id: If60bd51d4ecda799de465d2e54a2976cf4e6793a
parent efac4fed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment