jpeg pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=9dc0a15499578b618f8900981d735f2207102e5f
commit 9dc0a15499578b618f8900981d735f2207102e5f Author: Jean-Philippe Andre <jp.an...@samsung.com> Date: Fri Feb 17 18:37:03 2017 +0900 eo: Make _eo_obj_pointer_done an inline function @optimization --- src/lib/eo/eo_private.h | 1 - src/lib/eo/eo_ptr_indirection.c | 11 ----------- src/lib/eo/eo_ptr_indirection.x | 11 +++++++++++ 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/lib/eo/eo_private.h b/src/lib/eo/eo_private.h index 658c79f..84974da 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) /* Retrieves the pointer to the object from the id */ _Eo_Object *_eo_obj_pointer_get(const Eo_Id obj_id, const char *func_name, const char *file, int line); -void _eo_obj_pointer_done(const Eo_Id obj_id); static inline Efl_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 9d7031e..86ad204 100644 --- a/src/lib/eo/eo_ptr_indirection.c +++ b/src/lib/eo/eo_ptr_indirection.c @@ -203,14 +203,3 @@ err: return (_Eo_Object *) obj_id; #endif } - -void -_eo_obj_pointer_done(const Eo_Id obj_id) -{ -#ifdef HAVE_EO_ID - Efl_Id_Domain domain = (obj_id >> SHIFT_DOMAIN) & MASK_DOMAIN; - if (EINA_LIKELY(domain != EFL_ID_DOMAIN_SHARED)) return; - eina_lock_release(&(_eo_table_data_shared_data->obj_lock)); -#endif - (void)obj_id; -} diff --git a/src/lib/eo/eo_ptr_indirection.x b/src/lib/eo/eo_ptr_indirection.x index 5e0f7bf..ef3c0e0 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) return EINA_FALSE; } +static inline void +_eo_obj_pointer_done(const Eo_Id obj_id) +{ +#ifdef HAVE_EO_ID + Efl_Id_Domain domain = (obj_id >> SHIFT_DOMAIN) & MASK_DOMAIN; + if (EINA_LIKELY(domain != EFL_ID_DOMAIN_SHARED)) return; + eina_lock_release(&(_eo_table_data_shared_data->obj_lock)); +#endif + (void)obj_id; +} + ////////////////////////////////////////////////////////////////////////// --