evas sw render: cutout rects may be used in multiple threads
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 26 Mar 2016 01:49:20 +0000 (10:49 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 26 Mar 2016 01:52:14 +0000 (10:52 +0900)
commit4d6a8a7fce51b5654404226668a27d52d1e30eb3
tree0080b296cef1d5321e24e9da0dbc3b92ffc86e19
parent8269713fe5071b3eb7748a09b240a128b2d5c883
evas sw render: cutout rects may be used in multiple threads

several draw funcs keep a static Cutout_Rect *rects = NULL; variable
to cache cutout rects to avoid re-allocating them a lot etc. this is
fast and handy but we may use these from multiple threads. thats bad
.... mmmkay. so this fixes it the dirty way - makes them thread local.
:)

this fixes T3348 - the crash mentioned by @zmike

@fix
src/lib/evas/common/evas_font_draw.c
src/lib/evas/common/evas_map_image.c
src/lib/evas/common/evas_rectangle_main.c
src/lib/evas/common/evas_scale_main.c