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

[image] ImageCache: refine mutex usage #1504

Merged
merged 2 commits into from
Sep 5, 2023
Merged

Conversation

mugulmd
Copy link
Contributor

@mugulmd mugulmd commented Aug 9, 2023

Description

When using an ImageCache in a multi-threaded context, the process of loading large images from disk in one thread can be quite slow and block the other threads that are trying to access the content of the cache.
In this PR we add a mechanism to allow the other threads to "peek" into the cache during this loading operation.

@mugulmd mugulmd added this to the 3.2.0 milestone Aug 9, 2023
@mugulmd mugulmd self-assigned this Aug 9, 2023
@mugulmd mugulmd marked this pull request as ready for review August 10, 2023 10:21
@cbentejac cbentejac merged commit 5f5c5cb into develop Sep 5, 2023
3 of 4 checks passed
@cbentejac cbentejac deleted the mug/imageCacheRefineMutex branch September 5, 2023 15:47
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