Make fonts safe(r) for threading
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 19 Aug 2013 10:02:18 +0000 (10:02 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 19 Aug 2013 10:02:18 +0000 (10:02 +0000)
commit59dfb05c72a6cbbeed6e545488e3e4fe9f25d061
tree300915f1ac895092f753f8d8f9497bea3fdca5da
parent6bdff7e2ad27bd38ee8c419bc66ea20a95fa24b3
Make fonts safe(r) for threading

Getting vfont data wasn't safe for threading, because it
was modifying font data which is in bmain and could be
shared by multiple objects.

For now made it so getting vfont uses critical section,
meaning vfont->data is initializing from inside a locked
mutex.

--
svn merge -r58168:58169 ^/branches/soc-2013-depsgraph_mt
source/blender/blenkernel/intern/font.c