ecore: add ecore_event_type_flush.
authorCedric BAIL <cedric@osg.samsung.com>
Thu, 9 Mar 2017 23:51:00 +0000 (15:51 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 10 Mar 2017 00:17:58 +0000 (16:17 -0800)
commit614c255f3b96a1f22d51b237aabfdd086fa29446
treeac3b5e5f56fce88336ae43335251b267e89be8ed
parentadf9608387892fbea82cd8440808c90aa0215fee
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
src/lib/ecore/Ecore_Common.h
src/lib/ecore/ecore_events.c