Author: mhutch
Date: 2008-02-07 17:29:35 -0500 (Thu, 07 Feb 2008)
New Revision: 95200

Modified:
   trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog
   
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessWrapper.cs
Log:
* MonoDevelop.Core.Execution/ProcessWrapper.cs: Add a WaitForOutput
  overload with a time limit.

Modified: trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog  2008-02-07 
22:28:25 UTC (rev 95199)
+++ trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog  2008-02-07 
22:29:35 UTC (rev 95200)
@@ -1,3 +1,8 @@
+2008-02-07  Michael Hutchinson <[EMAIL PROTECTED]> 
+
+       * MonoDevelop.Core.Execution/ProcessWrapper.cs: Add a WaitForOutput 
overload
+         with a time limit.
+
 2008-02-04  Michael Hutchinson <[EMAIL PROTECTED]> 
 
        * MonoDevelop.Core/Runtime.cs: Use MD's config directory for addin 
engine

Modified: 
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessWrapper.cs
===================================================================
--- 
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessWrapper.cs
       2008-02-07 22:28:25 UTC (rev 95199)
+++ 
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessWrapper.cs
       2008-02-07 22:29:35 UTC (rev 95200)
@@ -33,15 +33,20 @@
                        captureErrorThread.Start ();
                }
                
-               public void WaitForOutput ()
+               public void WaitForOutput (int milliseconds)
                {
-                       WaitForExit ();
+                       WaitForExit (milliseconds);
                        lock (this) {
                                done = true;
                        }
                        WaitHandle.WaitAll (new WaitHandle[] {endEventOut, 
endEventErr});
                }
                
+               public void WaitForOutput ()
+               {
+                       WaitForOutput (-1);
+               }
+               
                private void CaptureOutput ()
                {
                        try {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to