Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/09/11 12:52:48 (13 years ago)
Author:
svonolfe
Message:

Implemented result and algorithm streaming (#1542)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/MPI/HeuristicLab.MPIAlgorithmRunner/3.3/Program.cs

    r6398 r6401  
    7777          SetJobStatus(address);
    7878
    79           ItemList<ResultCollection> results = new ItemList<ResultCollection>();
    80          
    8179          bool[] finished = new bool[clients];
    8280          int finishedCount = 0;
    8381
    8482          while (finishedCount != clients) {
     83            ItemList<ResultCollection> results = new ItemList<ResultCollection>();
     84
    8585            for (int i = 0; i < clients; i++) {
    8686              if (!finished[i]) {
     
    105105
    106106            Console.WriteLine("Update results");
    107             broker.Results = results;
     107            lock (broker.resultLocker)
     108              broker.Results = results;
    108109          }
    109110
     
    114115          broker.ExitWaitHandle.WaitOne();
    115116          Console.WriteLine("Finished.");
     117          Thread.Sleep(1000);
    116118          service.Close();
    117119        } else {
Note: See TracChangeset for help on using the changeset viewer.