Fix SynchronizationContext issue (#633) (#670)
authorpjh9216 <jh9216.park@samsung.com>
Fri, 18 Jan 2019 02:54:15 +0000 (11:54 +0900)
committerGitHub <noreply@github.com>
Fri, 18 Jan 2019 02:54:15 +0000 (11:54 +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)