-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1699844 - Add an escape hatch for the refcounted inside lambda ch…
…ecker. r=andi Allow using the MOZ_KnownLive function to get around it. Use case is the following: I have an std::function member variable, and I want that member to be able to capture `this`. Using a strong reference creates a cycle and thus would leak. I know `this` to always outlive the member, so it is fine to use a weak capture there. Differential Revision: https://phabricator.services.mozilla.com/D111850
- Loading branch information
Showing
3 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters