Diffusion Krita 0f4bcc3c9d12

Possibly fix lockfree hash table threading problems

Authored by dkazakov on Mar 13 2019, 5:23 PM.

Description

Possibly fix lockfree hash table threading problems

  1. Fix initialization of memento manager link in getTileLazy. Created tile might fail to be linked to the data manager, if someone was quicker. Therefore we should link the tile to the history only after we confirmed the creation.
  1. Fix double-deletion in garbage collector. Now it uses a standard "raw-pointer users" approach with a simple spin-lock for a special case of too-many-objects-deleted.
  1. Add a unittest for getTileLazy algorithm.

Details

Committed
dkazakovMar 13 2019, 5:25 PM
Parents
R37:bb0edcc85e8e: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown