summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo_ptr_indirection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eo/eo_ptr_indirection.c')
-rw-r--r--src/lib/eo/eo_ptr_indirection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eo/eo_ptr_indirection.c b/src/lib/eo/eo_ptr_indirection.c
index 14748a377b..cd578a5a2a 100644
--- a/src/lib/eo/eo_ptr_indirection.c
+++ b/src/lib/eo/eo_ptr_indirection.c
@@ -138,7 +138,7 @@ _eo_obj_pointer_get(const Eo_Id obj_id, const char *func_name, const char *file,
138 { 138 {
139 eina_lock_take(&(_eo_table_data_shared_data->obj_lock)); 139 eina_lock_take(&(_eo_table_data_shared_data->obj_lock));
140 if (obj_id == tdata->cache.id) 140 if (obj_id == tdata->cache.id)
141 // yes we return keeping the lock locked. thats why 141 // yes we return keeping the lock locked. that's why
142 // you must call _eo_obj_pointer_done() wrapped 142 // you must call _eo_obj_pointer_done() wrapped
143 // by EO_OBJ_DONE() to release 143 // by EO_OBJ_DONE() to release
144 return tdata->cache.object; 144 return tdata->cache.object;
@@ -169,7 +169,7 @@ _eo_obj_pointer_get(const Eo_Id obj_id, const char *func_name, const char *file,
169 // Cache the result of that lookup 169 // Cache the result of that lookup
170 tdata->cache.object = entry->ptr; 170 tdata->cache.object = entry->ptr;
171 tdata->cache.id = obj_id; 171 tdata->cache.id = obj_id;
172 // yes we return keeping the lock locked. thats why 172 // yes we return keeping the lock locked. that's why
173 // you must call _eo_obj_pointer_done() wrapped 173 // you must call _eo_obj_pointer_done() wrapped
174 // by EO_OBJ_DONE() to release 174 // by EO_OBJ_DONE() to release
175 return entry->ptr; 175 return entry->ptr;