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

Move context blitting operation to a dispatch queue with a barrier #68

Merged
merged 1 commit into from
Apr 17, 2019

Conversation

avi-c
Copy link
Contributor

@avi-c avi-c commented Nov 1, 2018

Safeguard against concurrency problems. CGContexts are not thread-safe and this caused occasional crashes as tile images were returned and stitched together.

… safeguard against concurrency problems. CGCentexts are not threadsafe and this caused occasional crashes as tile images were returned and stiched together.
@avi-c
Copy link
Contributor Author

avi-c commented Nov 1, 2018

@natalia-osa - Any comments?

@natalia-osa
Copy link
Contributor

Seems fine. But I cannot test it because I still have 100% crashes with the code (from this branch or from master). If you wanted to fix my issue, it doesn't look like the reason.

Here is the description of crash happening for for 100% sessions for us: #62 (comment). It's also the reason why we're not up to date with your code.

@psahgal
Copy link

psahgal commented Apr 17, 2019

Are there any updates on this pull request? I was about to put a up a pull request with the same fix, as this fixes one of several crashes happening in my project.

@avi-c avi-c merged commit 9063c71 into master Apr 17, 2019
@psahgal
Copy link

psahgal commented Apr 17, 2019

Thanks! That was a really quick response!

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.

3 participants