Blender Git Commit Log
Git Commits -> Revision 665ac71
July 2, 2015, 11:31 (GMT) |
Add API to IMB_thumb to enable thread safety. Indeed, though rather unlucky, we may end up handling same source file from different preview threads, which could lead to conflicts and bugs. So idea is to add a simple way of locking a given source file path, since thumb handling of different paths shall never conflict. Note that this adds some 'generic' stuff to GHash and Threads area, that are to be committed separately of course. |
Commit Details:
Full Hash: 665ac71aeee0f9ba34beefb006321ebeceed9da8
Parent Commit: dd15ef2
Lines Changed: +142, -44
7 Modified Paths:
/source/blender/blenlib/BLI_ghash.h (+3, -0) (Diff)
/source/blender/blenlib/BLI_threads.h (+1, -0) (Diff)
/source/blender/blenlib/intern/BLI_ghash.c (+9, -0) (Diff)
/source/blender/blenlib/intern/threads.c (+38, -44) (Diff)
/source/blender/editors/space_file/filelist.c (+7, -0) (Diff)
/source/blender/imbuf/IMB_thumbs.h (+6, -0) (Diff)
/source/blender/imbuf/intern/thumbs.c (+78, -0) (Diff)
/source/blender/blenlib/BLI_threads.h (+1, -0) (Diff)
/source/blender/blenlib/intern/BLI_ghash.c (+9, -0) (Diff)
/source/blender/blenlib/intern/threads.c (+38, -44) (Diff)
/source/blender/editors/space_file/filelist.c (+7, -0) (Diff)
/source/blender/imbuf/IMB_thumbs.h (+6, -0) (Diff)
/source/blender/imbuf/intern/thumbs.c (+78, -0) (Diff)