Diffusion Krita 6333b9b41af4

Fix a potential race condition in KisRecalculateGeneratorLayerJob

Authored by dkazakov on Jun 12 2018, 8:18 AM.

Description

Fix a potential race condition in KisRecalculateGeneratorLayerJob

In some rare cases (when the color space of the image changed),
KisGeneratorLayer::update() may call resetCache(), which demands
exclusive access to the paint device. So just make it run exclusively.

(cherry picked from commit 430ff1b0ec7fc9ce3aceb925c2df19e1f7898a80)

Details

Committed
remptJun 13 2018, 11:48 AM
Parents
R37:45dc6137bf39: Fix crash when editing transform mask too actively
Branches
Unknown
Tags
Unknown