aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_main.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-09-28 02:56:28 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-09-28 02:58:54 +0900
commit15b9ac2d2547e433faa521e95415327323b94e52 (patch)
treec2dc6fe0003646cb7a80c4fbd2979d28105980e0 /src/lib/evas/canvas/evas_main.c
parentevas - software x11 - lock shmpool as now shm pool entities are threaded (diff)
downloadefl-15b9ac2d2547e433faa521e95415327323b94e52.tar.gz
evas - lock render updates as this happesn to be accesed from threads
Diffstat (limited to 'src/lib/evas/canvas/evas_main.c')
-rw-r--r--src/lib/evas/canvas/evas_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_main.c b/src/lib/evas/canvas/evas_main.c
index 1fa4d32fa5..bdafc3128c 100644
--- a/src/lib/evas/canvas/evas_main.c
+++ b/src/lib/evas/canvas/evas_main.c
@@ -193,6 +193,7 @@ _evas_canvas_eo_base_constructor(Eo *eo_obj, Evas_Public_Data *e)
#undef EVAS_ARRAY_SET
eina_lock_new(&(e->lock_objects));
+ eina_spinlock_new(&(e->render.lock));
return eo_obj;
}
@@ -316,6 +317,7 @@ _evas_canvas_eo_base_destructor(Eo *eo_e, Evas_Public_Data *e)
_evas_device_cleanup(eo_e);
eina_lock_free(&(e->lock_objects));
+ eina_spinlock_free(&(e->render.lock));
e->magic = 0;
eo_do_super(eo_e, MY_CLASS, eo_destructor());