summaryrefslogtreecommitdiff
path: root/src/lib/evas/include
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-10-10 17:44:24 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-10-11 11:08:17 +0900
commit6dcffec491f2281dd8649f1196f576fa715507f3 (patch)
treeecaf3025222b4bb48d457285e605465bec57c0a5 /src/lib/evas/include
parent12d34309c7c6e3f3041ee576afe93f9ca335059e (diff)
evas: Use Eina_Spinlock for Evas_Scalecache, Evas_Async_Events and Image_Entry.
Diffstat (limited to 'src/lib/evas/include')
-rw-r--r--src/lib/evas/include/evas_common_private.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/lib/evas/include/evas_common_private.h b/src/lib/evas/include/evas_common_private.h
index c07f6e617f..8d8b9f69e6 100644
--- a/src/lib/evas/include/evas_common_private.h
+++ b/src/lib/evas/include/evas_common_private.h
@@ -156,6 +156,13 @@ extern EAPI int _evas_log_dom_global;
156# define __ARM_ARCH__ 73 156# define __ARM_ARCH__ 73
157#endif 157#endif
158 158
159#define SLK(x) Eina_Spinlock x
160#define SLKI(x) eina_spinlock_new(&(x))
161#define SLKD(x) eina_spinlock_free(&(x))
162#define SLKL(x) eina_spinlock_take(&(x))
163#define SLKT(x) eina_spinlock_take_try(&(x))
164#define SLKU(x) eina_spinlock_release(&(x))
165
159#define LK(x) Eina_Lock x 166#define LK(x) Eina_Lock x
160#define LKI(x) eina_lock_new(&(x)) 167#define LKI(x) eina_lock_new(&(x))
161#define LKD(x) eina_lock_free(&(x)) 168#define LKD(x) eina_lock_free(&(x))
@@ -600,9 +607,9 @@ struct _Image_Entry
600 Evas_Image_Load_Func *loader; 607 Evas_Image_Load_Func *loader;
601 } info; 608 } info;
602 609
603 LK(lock); 610 SLK(lock);
604 LK(lock_cancel); 611 SLK(lock_cancel);
605 LK(lock_task); 612 SLK(lock_task);
606 613
607 /* for animation feature */ 614 /* for animation feature */
608 Evas_Image_Animated animated; 615 Evas_Image_Animated animated;
@@ -796,7 +803,7 @@ struct _RGBA_Image
796 } image; 803 } image;
797 804
798 struct { 805 struct {
799 LK(lock); 806 SLK(lock);
800 Eina_List *list; 807 Eina_List *list;
801 Eina_Hash *hash; 808 Eina_Hash *hash;
802 unsigned long long orig_usage; 809 unsigned long long orig_usage;