summaryrefslogtreecommitdiff
path: root/src/lib/eo
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-02-17 18:37:03 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-02-21 10:52:39 +0900
commit9dc0a15499578b618f8900981d735f2207102e5f (patch)
tree9d71e38a1cec077e2e292ef5f24a7be984df6554 /src/lib/eo
parent24b5eedd6d860146b42ddeaff0727e64ad97edad (diff)
eo: Make _eo_obj_pointer_done an inline function
@optimization
Diffstat (limited to 'src/lib/eo')
-rw-r--r--src/lib/eo/eo_private.h1
-rw-r--r--src/lib/eo/eo_ptr_indirection.c11
-rw-r--r--src/lib/eo/eo_ptr_indirection.x11
3 files changed, 11 insertions, 12 deletions
diff --git a/src/lib/eo/eo_private.h b/src/lib/eo/eo_private.h
index 658c79f7fe..84974da7d5 100644
--- a/src/lib/eo/eo_private.h
+++ b/src/lib/eo/eo_private.h
@@ -214,7 +214,6 @@ Eo *_eo_header_id_get(const Eo_Header *header)
214 214
215/* Retrieves the pointer to the object from the id */ 215/* Retrieves the pointer to the object from the id */
216_Eo_Object *_eo_obj_pointer_get(const Eo_Id obj_id, const char *func_name, const char *file, int line); 216_Eo_Object *_eo_obj_pointer_get(const Eo_Id obj_id, const char *func_name, const char *file, int line);
217void _eo_obj_pointer_done(const Eo_Id obj_id);
218 217
219static inline 218static inline
220Efl_Class *_eo_class_id_get(const _Efl_Class *klass) 219Efl_Class *_eo_class_id_get(const _Efl_Class *klass)
diff --git a/src/lib/eo/eo_ptr_indirection.c b/src/lib/eo/eo_ptr_indirection.c
index 9d7031e1e1..86ad204666 100644
--- a/src/lib/eo/eo_ptr_indirection.c
+++ b/src/lib/eo/eo_ptr_indirection.c
@@ -203,14 +203,3 @@ err:
203 return (_Eo_Object *) obj_id; 203 return (_Eo_Object *) obj_id;
204#endif 204#endif
205} 205}
206
207void
208_eo_obj_pointer_done(const Eo_Id obj_id)
209{
210#ifdef HAVE_EO_ID
211 Efl_Id_Domain domain = (obj_id >> SHIFT_DOMAIN) & MASK_DOMAIN;
212 if (EINA_LIKELY(domain != EFL_ID_DOMAIN_SHARED)) return;
213 eina_lock_release(&(_eo_table_data_shared_data->obj_lock));
214#endif
215 (void)obj_id;
216}
diff --git a/src/lib/eo/eo_ptr_indirection.x b/src/lib/eo/eo_ptr_indirection.x
index 5e0f7bf376..ef3c0e0cb5 100644
--- a/src/lib/eo/eo_ptr_indirection.x
+++ b/src/lib/eo/eo_ptr_indirection.x
@@ -366,6 +366,17 @@ _eo_id_domain_compatible(const Eo *o1, const Eo *o2)
366 return EINA_FALSE; 366 return EINA_FALSE;
367} 367}
368 368
369static inline void
370_eo_obj_pointer_done(const Eo_Id obj_id)
371{
372#ifdef HAVE_EO_ID
373 Efl_Id_Domain domain = (obj_id >> SHIFT_DOMAIN) & MASK_DOMAIN;
374 if (EINA_LIKELY(domain != EFL_ID_DOMAIN_SHARED)) return;
375 eina_lock_release(&(_eo_table_data_shared_data->obj_lock));
376#endif
377 (void)obj_id;
378}
379
369////////////////////////////////////////////////////////////////////////// 380//////////////////////////////////////////////////////////////////////////
370 381
371 382