Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[core] Schedule invocation of onStyleImageMissing completion callback on the same thread #14620

Merged

Conversation

alexshalamov
Copy link
Contributor

Before this change, ImageManger's 'done' callback for onStyleImageMissing observer notification that was created on a renderer thread, could be called from a different thread, therefore, it's not thread safe. For example, on Android platform, callback was invoked from UI thread. This change makes callback to be scheduled on originating thread.

Fixes: #14496

… on the same thread

Before this change, ImageManger's 'done' callback for onStyleImageMissing observer
notification that was created on renderer thread, could be called from different thread,
therefore, is not thread safe. For example, on Android platform, callback was invoked
from UI thread. This change makes callback to be scheduled on originating thread.
@alexshalamov alexshalamov requested review from ansis and pozdnyakov May 9, 2019 08:16
@alexshalamov
Copy link
Contributor Author

/cc @LukasPaczos @tobrun

@alexshalamov alexshalamov merged commit a53c459 into master May 9, 2019
@alexshalamov alexshalamov deleted the alexshalamov_fix_onStyleImageMissing_threading branch May 9, 2019 17:45
@tobrun tobrun added this to the release-mojito milestone May 10, 2019
@julianrex
Copy link
Contributor

FYI @fabian-guerra

@chloekraw chloekraw added bug Core The cross-platform C++ core, aka mbgl labels Jul 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Core The cross-platform C++ core, aka mbgl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing image's remaining callbacks assertion failure
6 participants