From 0ea41d8c7b979c3f48a8901f2cbf213acac280d8 Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Mon, 11 Dec 2023 13:28:59 +0900 Subject: [PATCH] [Tizen] 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 --- dali-csharp-binder/common/processor-controller.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/dali-csharp-binder/common/processor-controller.cpp b/dali-csharp-binder/common/processor-controller.cpp index e1869d5..90b7c03 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(); } } @@ -158,6 +158,20 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ProcessorController() { { 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(); } CALL_CATCH_EXCEPTION(0); } -- 2.7.4