Blender Git Commit Log
Git Commits -> Revision a960dc4
Revision a960dc4 by Richard Antalik (master) September 14, 2019, 00:24 (GMT) |
BLF: make library glyph cache handling thread-safe Functions that utilize glyph cache should lock and unlock cache by calling `blf_glyph_cache_acquire()` and `blf_glyph_cache_release()`. Function `blf_glyph_cache_acquire()` will create glyph cache, if it doesn't exist. Locking mutex is global and shared by all fonts. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5701 |
Commit Details:
Full Hash: a960dc451930796ca310cc88f00fb701374b2f7f
Parent Commit: ab3a9dc
Lines Changed: +274, -111
5 Modified Paths:
/source/blender/blenfont/intern/blf.c (+20, -16) (Diff)
/source/blender/blenfont/intern/blf_font.c (+189, -72) (Diff)
/source/blender/blenfont/intern/blf_glyph.c (+46, -19) (Diff)
/source/blender/blenfont/intern/blf_internal.h (+13, -3) (Diff)
/source/blender/blenfont/intern/blf_internal_types.h (+6, -1) (Diff)
/source/blender/blenfont/intern/blf_font.c (+189, -72) (Diff)
/source/blender/blenfont/intern/blf_glyph.c (+46, -19) (Diff)
/source/blender/blenfont/intern/blf_internal.h (+13, -3) (Diff)
/source/blender/blenfont/intern/blf_internal_types.h (+6, -1) (Diff)