From: Eunki, Hong Date: Mon, 11 Dec 2023 04:28:59 +0000 (+0900) Subject: Bind new API that create ProcessorController without Initialize X-Git-Tag: accepted/tizen/unified/20231212.161245~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5cb64856ffb5bee3e27ef1bc49aa19ff096fb5d1;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Bind new API that create ProcessorController without Initialize To keep backward compactibility, let we keep CSharp_Dali_new_ProcessorController works same as previous logic. Instead, let we bind new API without Intialize, so we can create ProcessorController non-main thread. Change-Id: I8b473053f1ff9a223d5b347122140edb551ec3cc Signed-off-by: Eunki, Hong --- diff --git a/dali-csharp-binder/common/processor-controller.cpp b/dali-csharp-binder/common/processor-controller.cpp index e1869d5c..90b7c03a 100644 --- a/dali-csharp-binder/common/processor-controller.cpp +++ b/dali-csharp-binder/common/processor-controller.cpp @@ -142,7 +142,7 @@ void ProcessorController::RegisterProcess() mProcessRegistered = true; } - CALL_CATCH_EXCEPTION(); + CALL_CATCH_EXCEPTION(); } } @@ -155,6 +155,20 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ProcessorController() { ProcessorController *result = 0 ; + { + try { + result = (ProcessorController *)new ProcessorController(); + result->RegisterProcess(); + } CALL_CATCH_EXCEPTION(0); + } + + return (void *)result; +} + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ProcessorController_Without_Initialize() { + + ProcessorController *result = 0 ; + { try { result = (ProcessorController *)new ProcessorController();