Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.3] OperationQueue fixes #2831

Merged
merged 3 commits into from Jul 9, 2020

Conversation

spevans
Copy link
Collaborator

@spevans spevans commented Jun 24, 2020

This is a rollup of three OperationQueue fixes, #2776 #2777 #2779

This is done as one PR as the some tests are disabled then enabled and the commits overlap otherwise.

There are some issues in current implementation. To keep things simple, I'd like to extend
test coverage of problem area first. Not all of new tests are expected to fail, but I find them useful
to have.

Co-authored-by: Andrew Druk <adruk@readdle.com>
Co-authored-by: Anton Pogonets <apogonets@readdle.com>
(cherry picked from commit d6cb1ee)
This fixes typos in code responsible for counting operations in queue.

(cherry picked from commit d8c2cfa)
- prevent releasing of stored value in `Operation._queue` property getter
- balance retain count after current queue removed from thread-specific storage
- make test_OperationWaitUntilFinished stable
- extend test_OperationCount

(cherry picked from commit 6257faa)
@spevans
Copy link
Collaborator Author

spevans commented Jun 24, 2020

@swift-ci please test

@broadwaylamb
Copy link
Contributor

Will this make it into 5.3? @parkera @millenomi

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.

None yet

4 participants