diff Implab.Diagnostics.Interactive/InteractiveListener.cs @ 130:671f60cd0250 v2

fixed Resove method bug when calling it on already cancelled promise
author cin
date Fri, 30 Jan 2015 17:07:17 +0300
parents 4c0e5ef99986
children 04d4c92d0f28
line wrap: on
line diff
--- a/Implab.Diagnostics.Interactive/InteractiveListener.cs	Thu Jan 29 18:31:06 2015 +0300
+++ b/Implab.Diagnostics.Interactive/InteractiveListener.cs	Fri Jan 30 17:07:17 2015 +0300
@@ -14,7 +14,7 @@
         TraceForm m_form;
         
         SynchronizationContext m_syncGuiThread;
-        readonly Promise<object> m_guiStarted = new Promise<object>();
+        readonly Promise m_guiStarted = new Promise();
         
         readonly IPromise m_guiFinished;
         //        readonly IPromise m_workerFinished = new Promise<object>();
@@ -30,8 +30,8 @@
         readonly ManualResetEvent m_pauseEvent = new ManualResetEvent(true);
 
         public InteractiveListener(bool global) : base(global) {
-            m_guiFinished = AsyncPool.InvokeNewThread(GuiThread);
-            /*m_workerFinished = */AsyncPool.InvokeNewThread(QueueThread);
+            m_guiFinished = AsyncPool.RunThread(GuiThread);
+            /*m_workerFinished = */AsyncPool.RunThread(QueueThread);
 
             m_guiStarted.Join();
         }