efl/src/bindings/mono/eldbus_mono
Vitor Sousa 1c22a3d819 efl-csharp: fix resource deallocation causing errors everywhere
Summary:
This commit mainly fixes errors caused by deallocating resources in the garbage
collector thread. Using `ecore_main_loop_thread_safe_call_async` to queue
resource deallocation in the main thread seems to solve it.

Also, some `efl_ref` calls are added in places they were missing, mainly
objects that unref in the destructor thus taking ownership if efl_ref is not
called.

Also fix improper resource deallocation in tests that were causing it to crash,
enabling it to call Efl.All.Shutdown again. This allocation and the deallocation
process was moved from the Eo class constructor to static class methods that are
called in the test 'set up' and 'tear down' methods.

Queuing resource deallocation in the main thread make it mandatory that tests
call `Efl.App.AppMain.Iterate()` if they want to check proper resource
deallocation (like TestFunctionPointers.set_callback_inherited_called_from_c).

Extras:
Remove duplicated declaration of 'eflcustomexportsmono' in meson in order to fix
some linking problems.

Remove some unused code around deallocation functions that had to be reworked.

Object allocation is now supplied with the call site information it expects
(file name and line for _efl_add_start).

Depends on D8550

Test Plan: meson test

Reviewers: felipealmeida, lauromoura, cedric, segfaultxavi

Reviewed By: lauromoura

Subscribers: segfaultxavi

Tags: #efl_language_bindings, #do_not_merge

Differential Revision: https://phab.enlightenment.org/D8431
2019-04-05 19:58:19 -03:00
..
eldbus_common.cs mono: fix space and brace warnings of StyleCop 2019-04-02 16:57:52 +02:00
eldbus_config.cs mono: fix space and brace warnings of StyleCop 2019-04-02 16:57:52 +02:00
eldbus_connection.cs efl-csharp: fix resource deallocation causing errors everywhere 2019-04-05 19:58:19 -03:00
eldbus_message.cs efl-csharp: fix resource deallocation causing errors everywhere 2019-04-05 19:58:19 -03:00
eldbus_object.cs efl-csharp: fix resource deallocation causing errors everywhere 2019-04-05 19:58:19 -03:00
eldbus_pending.cs mono: fix space and brace warnings of StyleCop 2019-04-02 16:57:52 +02:00
eldbus_proxy.cs efl-csharp: fix resource deallocation causing errors everywhere 2019-04-05 19:58:19 -03:00
eldbus_service.cs mono: fix space and brace warnings of StyleCop 2019-04-02 16:57:52 +02:00
meson.build meson: time for the c-sharp build 2018-10-24 12:05:58 +02:00