ecore: add ecore_event_type_flush. 27/118327/2
authorCedric BAIL <cedric@osg.samsung.com>
Thu, 9 Mar 2017 23:51:00 +0000 (15:51 -0800)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Thu, 6 Jul 2017 04:46:42 +0000 (04:46 +0000)
commitb6419a06e8c27cb8107a97f0b7d6f7c2a007cd3c
tree63f187303a9721730d18628bea5c9f8e556cb442
parentee9eff875f685b806e909afb86290b5d020b6469
ecore: add ecore_event_type_flush.

During shutdown it is possible that some event are still in ecore events
queue and get processed after the shutdown of the module that did emit them.
This would lead to crash in some case. The answer to this problem is to
normally manually track all ecore event in the queue and destroy them
before shutdown... Of course that make the API difficult to use and
basically nobody got it right.

This new API do actually as it says remove all the ecore event of a
certain type from ecore events queue. It is to be called on shutdown.

@fix

Change-Id: Ia50b5a153dd033d3448703fe13c6fd532e28b4f5
Signed-off-by: Jiwon Kim <jiwon177.kim@samsung.com>
src/lib/ecore/Ecore_Common.h
src/lib/ecore/ecore_events.c