Changeset 1023
- Timestamp:
- 12/18/08 14:07:09 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.JobBase/TestJob.cs
r1001 r1023 26 26 using System.Diagnostics; 27 27 using System.Xml; 28 using System.Threading; 28 29 29 30 namespace HeuristicLab.Hive.JobBase { … … 36 37 int max = 10; 37 38 while(runValue < max && abort == false) { 38 for (int y = 0; y < Int32.MaxValue; y++) ; 39 if (abort == true) { 40 Debug.WriteLine("Job Abort Processing"); 41 break; 42 } 39 //for (int y = 0; y < Int32.MaxValue; y++) ; 40 Thread.Sleep(2000); 41 if (abort == true) { 42 Debug.WriteLine("Job Abort Processing"); 43 break; 44 } 43 45 runValue++; 44 46 Progress = (double)runValue / max;
Note: See TracChangeset
for help on using the changeset viewer.