Diffusion Krita 86acf52509a5

BUG:368648 Do not deadlock while loading this image

Authored by rempt on Sep 12 2016, 10:16 AM.

Description

BUG:368648 Do not deadlock while loading this image

The image contains a filter layer that needs create a lab colorspace
for filtering. That locks the KoColorSpaceRegistry, but... We also
need access to load the profiles. And in any case, the image should
not be recomputed while loading.

So, lock the image update while loading. This has the side effect
of noticably speeding up the loading of this image for me. Which
lock to use, Lock, barrierlock, lock or blockupdates... That's a
mystery, because no apidox. I used blockUpdates because that sounds
most like what I need.

Details

Committed
remptSep 12 2016, 10:19 AM
Parents
R37:37021e4baa26: Note a few places where we _really_ need apidox
Branches
Unknown
Tags
Unknown