Fix SynchronizationContext issue (#633)
authorSeungkeun Lee <sngn.lee@samsung.com>
Thu, 17 Jan 2019 01:22:28 +0000 (10:22 +0900)
committerpjh9216 <jh9216.park@samsung.com>
Thu, 17 Jan 2019 01:22:28 +0000 (10:22 +0900)
- Set SynchronizationContext on WidgetCoreBackend Run
 - Set SynchronizationContext on WatchCoreBackend Run

src/Tizen.Applications.WatchApplication/Tizen.Applications.CoreBackend/WatchCoreBackend.cs [changed mode: 0755->0644]
src/Tizen.Applications.WidgetApplication/Tizen.Applications.CoreBackend/WidgetCoreBackend.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 01f0bc1..a244b2c
@@ -116,6 +116,8 @@ namespace Tizen.Applications.CoreBackend
 
         public void Run(string[] args)
         {
+            TizenSynchronizationContext.Initialize();
+
             Interop.Watch.ErrorCode err = Interop.Watch.ErrorCode.None;
 
             err = Interop.Watch.AddEventHandler(out _lowMemoryEventHandle, Interop.Watch.AppEventType.LowMemory, _lowMemoryCallback, IntPtr.Zero);
old mode 100755 (executable)
new mode 100644 (file)
index eee864b..e05eaa2
@@ -109,6 +109,8 @@ namespace Tizen.Applications.CoreBackend
 
         public void Run(string[] args)
         {
+            TizenSynchronizationContext.Initialize();
+
             Interop.Widget.ErrorCode err = Interop.Widget.ErrorCode.None;
             err = Interop.Widget.AddEventHandler(out _lowMemoryEventHandle, Interop.Widget.AppEventType.LowMemory, _lowMemoryCallback, IntPtr.Zero);
             if (err != Interop.Widget.ErrorCode.None)