Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1023


Ignore:
Timestamp:
12/18/08 14:07:09 (16 years ago)
Author:
kgrading
Message:

changed testjob => thread.sleep instead of for - loops (#356)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.JobBase/TestJob.cs

    r1001 r1023  
    2626using System.Diagnostics;
    2727using System.Xml;
     28using System.Threading;
    2829
    2930namespace HeuristicLab.Hive.JobBase {
     
    3637      int max = 10;
    3738      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        }
    4345        runValue++;
    4446        Progress = (double)runValue / max;       
Note: See TracChangeset for help on using the changeset viewer.