Blender Git Commit Log

Git Commits -> Revision d85e94d

Revision d85e94d by Bastien Montagne (master)
August 18, 2015, 10:39 (GMT)
IMB_thumb: add thread locking API.

General idea is that, if several threads are handling thumbnails at the same time,
they can end working on the same file at some point, which will generate conflict.

To avoid this, threads can now lock a given filepath.

Note that locking data is allocated on a ref-count basis, to avoid keeping the GSet
in memory when not needed. Also, we are using global LOCK_IMAGE mutex for now.

Needed for upcomming filebrowser rework.

Commit Details:

Full Hash: d85e94da07d3d8bb213ef2e3d98c2032edad7155
Parent Commit: 81afa29
Lines Changed: +82, -0

2 Modified Paths:

/source/blender/imbuf/IMB_thumbs.h (+6, -0) (Diff)
/source/blender/imbuf/intern/thumbs.c (+76, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021