Diffusion Krita da26d46c7767

Fix race condition in projection cache in KisLayer

Authored by dkazakov on Mar 17 2019, 2:31 PM.

Description

Fix race condition in projection cache in KisLayer

When indirect painting is disabled (or a mask is removed) the layer
becomes projection-free, that is, projection device should be recycled.
The problem is that the projection may still be accessed by worker
threads, therefore the actual cleaning of the devices should happen in
an exclusive context.

The patch adds a special exclusive spontaneous job, that does all the
cleaning when all workers are guaranteed to be idle/paused.

Details

Committed
dkazakovMar 17 2019, 4:07 PM
Parents
R37:195d84258630: Fix incorrect tile access in KisPaintDevice::clearSelection()
Branches
Unknown
Tags
Unknown