-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Darwin: Refactor MTRAsyncWorkQueue to avoid retain cycles (#29464)
* Darwin: Refactor MTRAsyncWorkQueue to avoid retain cycles - Pass a completion to readyHandler instead of capturing the work item - Hold the context weakly within the queue and handle context loss - Simplify thread-safety by having clear ownership rules for work items * Darwin: Consolidate MTRAsyncWorkQueue headers The internal header is no longer needed because MTRAsyncWorkQueue is entirely private to the project now. Also tidy up duplicate / batching logic a little. * Darwin: invalidate MTRDevice work queue * Address review comments * Add os_unfair_lock_assert_owner and comments * Introduce MTRAsyncWorkItemRetryCountBase * More tweaks from review
- Loading branch information
1 parent
1716a59
commit 1983890
Showing
11 changed files
with
1,707 additions
and
1,882 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
Oops, something went wrong.