eo_cxx: Fix signal_connection disconnect crash
authorVitor Sousa <vitorsousasilva@gmail.com>
Mon, 26 Jan 2015 17:49:16 +0000 (15:49 -0200)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Tue, 14 Apr 2015 04:06:57 +0000 (01:06 -0300)
commit5043dcb830e96aa11b04e3bebc935c1c4cc606f2
tree169b8e4dbf17c1d249d50bdbf222cd322fe2c7a9
parent3b441cdf4a83383f4cd55ca8569e8eb98d45868e
eo_cxx: Fix signal_connection disconnect crash

Fixed crash when disconnecting event inside of its own event callback.
Instead of deleting the callback object immediately during disconnection
(which causes the callback to be freed), the deletion is now scheduled
for later (using ecore_main_loop_thread_safe_call_async).

Updated some Makefiles to proper include ecore now that it is used in
all event wrappers.

Added a unit test to verify crashes under these circumstances.
src/Makefile_Eina_Cxx.am
src/Makefile_Eolian_Cxx.am
src/bindings/eo_cxx/eo_event.hh
src/tests/eolian_cxx/eolian_cxx_test_callback.cc