[NUI] Reorder Disposable's ReleaseSwigCPtr + Allow to dispose seperate thread
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 18 Jan 2023 05:38:29 +0000 (14:38 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 18 Jan 2023 07:46:35 +0000 (16:46 +0900)
commit5f926d21c443946f0bcc56a305dda0ef4a7e1ae7
tree238428340bf092acb63637909b3f6447c3125c00
parent5d9ceefb82c0cd958e3ff435669348f05fe718fb
[NUI] Reorder Disposable's ReleaseSwigCPtr + Allow to dispose seperate thread

Reorder the `ReleaseSwigCPtr` call time and `SwigCPtr` value setup.
It will be matched as `BaseHandle.cs` doing now.

Plus

Make we don't print any fatal log when we try to dispose `Disposable` class.
For example, `Vector2` or `Uint16Pair` don't need to be used only for main thread.
Only some UI releative things has some dependency issue of Main / UI thread.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/internal/Common/Disposable.cs
test/Tizen.NUI.Devel.Tests.Ubuntu/Tizen.NUI.Devel.Tests/testcase/etc/DisposeTest.cs