[Tizen] Bind new API that create ProcessorController without Initialize 43/302643/1 accepted/tizen/8.0/unified/20231214.075340
authorEunki, Hong <eunkiki.hong@samsung.com>
Mon, 11 Dec 2023 04:28:59 +0000 (13:28 +0900)
committerEunki Hong <eunkiki.hong@samsung.com>
Mon, 11 Dec 2023 10:14:17 +0000 (19:14 +0900)
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 <eunkiki.hong@samsung.com>
dali-csharp-binder/common/processor-controller.cpp

index e1869d5..90b7c03 100644 (file)
@@ -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);
   }