Blender Git Loki
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