Blender Git Commit Log

Git Commits -> Revision 6617818

Revision 6617818 by Sergey Sharybin (master)
April 16, 2018, 08:18 (GMT)
Make ID icons safe for deletion from threads

Added a lock-free deferred queue for deletion. Now if ID icon
is requested to be freed from non-main thread, it will be added
to the deferred list. Actual deletion will happen later from main
thread.

Currently actual deletion only happens next time BKE_icon_id_delete()
is called, which might not be enough. But it's easy to enforce
deferred deletion.

Icons for preview images are not covered by deferred deletion yet.

Reviewers: mont29

Differential Revision: https://developer.blender.org/D3146

Commit Details:

Full Hash: 6617818c7a1f5729763aa214866b5d7dc0358f36
Parent Commit: 5bfe612
Lines Changed: +63, -4

2 Modified Paths:

/source/blender/blenkernel/BKE_icons.h (+3, -0) (Diff)
/source/blender/blenkernel/intern/icons.c (+60, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021