summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-01-23 16:29:47 -0800
committerCedric BAIL <cedric.bail@free.fr>2019-01-24 12:22:43 -0800
commit745fb1cf3cf799c2531771bc483ec29c5b7b9624 (patch)
treea38f464390adf48f4d0d1cb54191210f6e10d0d9 /src/lib/eo/eo.c
parent27b06dd4ad8d00993dfc45eef9d05fae2896c1ab (diff)
eo: propagate knowledge of EFL_EVENT_NOREF callback registration to the event call generation.
This reduce the amount of time efl_event_callback_call(EFL_EVENT_NOREF) is triggered by a factor of 10. Reviewed-by: Derek Foreman <derekf@osg.samsung.com> Differential Revision: https://phab.enlightenment.org/D7744
Diffstat (limited to 'src/lib/eo/eo.c')
-rw-r--r--src/lib/eo/eo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 78bed1a..5d95ff0 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -1924,7 +1924,7 @@ efl_unref(const Eo *obj_id)
1924 1924
1925 _efl_ref(obj); 1925 _efl_ref(obj);
1926 1926
1927 if (EINA_UNLIKELY((!obj->unref_compensate) && 1927 if (EINA_UNLIKELY((obj->noref_event) && (!obj->unref_compensate) &&
1928 ((obj->user_refcount == 1 && !obj->parent) || 1928 ((obj->user_refcount == 1 && !obj->parent) ||
1929 (obj->user_refcount == 2 && obj->parent)))) 1929 (obj->user_refcount == 2 && obj->parent))))
1930 { 1930 {