Skip to content

C++/WinRT: Hardened and optimized relationship between final_release and weak references#110

Merged
kennykerr merged 4 commits into
masterfrom
kennykerr
Dec 17, 2018
Merged

C++/WinRT: Hardened and optimized relationship between final_release and weak references#110
kennykerr merged 4 commits into
masterfrom
kennykerr

Conversation

@kennykerr

Copy link
Copy Markdown
Contributor

The final_release feature pessimized AddRef and Release in all cases and didn't actually play very nicely with weak references. While it supported QIs during destruction, a query for IWeakReferenceSource caused trouble. This minor tweak fixes both by removing the need for the extra memory barriers in AddRef and Release and by supporting queries for weak references during destruction.

@kennykerr kennykerr merged commit ec9e2d3 into master Dec 17, 2018
@kennykerr kennykerr deleted the kennykerr branch January 2, 2019 16:06
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.

2 participants