[NUI] Add GetRenderThreadId() as hidden API
authordongsug.song <dongsug.song@samsung.com>
Mon, 26 Dec 2022 12:26:23 +0000 (21:26 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 27 Dec 2022 02:42:17 +0000 (11:42 +0900)
src/Tizen.NUI/src/internal/Interop/Interop.Application.cs
src/Tizen.NUI/src/public/Application/NUIApplication.cs

index a258523..05856cd 100755 (executable)
@@ -94,6 +94,10 @@ namespace Tizen.NUI
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Application_New__SWIG_6")]
             public static extern global::System.IntPtr New(int jarg1, string jarg3, int jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, bool jarg7);
+
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Application_GetRenderThreadId")]
+            public static extern int GetRenderThreadId(global::System.Runtime.InteropServices.HandleRef application);
+
         }
     }
 }
index 72b016c..23128dc 100755 (executable)
@@ -616,6 +616,23 @@ namespace Tizen.NUI
             borderEnabled = true;
             this.borderInterface = borderInterface;
         }
+
+        /// <summary>
+        /// Get native rendering thread ID
+        /// </summary>
+        /// <returns>native render thread ID</returns>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public int GetRenderThreadId()
+        {
+            int ret = 0;
+            if (ApplicationHandle != null && ApplicationHandle.SwigCPtr.Handle != IntPtr.Zero)
+            {
+                ret = Interop.Application.GetRenderThreadId(ApplicationHandle.SwigCPtr);
+                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            }
+            return ret;
+        }
+
     }
 
     /// <summary>