Skip to content

Weak references#281

Open
snej wants to merge 3 commits intomasterfrom
feature/weak-refs
Open

Weak references#281
snej wants to merge 3 commits intomasterfrom
feature/weak-refs

Conversation

@snej
Copy link
Contributor

@snej snej commented Feb 13, 2026

Implemented WeakRetained<> / WeakRef<>.
See the proposal document in the wiki.
Lockless algorithms are tricky, so I've detailed exactly how this works.

Also implemented RetainedBySubclass and WeakRetainedBySubclass, which are a bit tricky to explain; see their doc-comments. The latter is basically a clean replacement for LiteCore's WeakHolder.

@snej snej force-pushed the feature/weak-refs branch from f5102a3 to a81baee Compare February 13, 2026 19:45
@snej snej force-pushed the feature/weak-refs branch from a81baee to 4320308 Compare February 19, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments