- Timestamp:
- 06/09/11 12:52:48 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/MPI/HeuristicLab.MPIAlgorithmRunner/3.3/Program.cs
r6398 r6401 77 77 SetJobStatus(address); 78 78 79 ItemList<ResultCollection> results = new ItemList<ResultCollection>();80 81 79 bool[] finished = new bool[clients]; 82 80 int finishedCount = 0; 83 81 84 82 while (finishedCount != clients) { 83 ItemList<ResultCollection> results = new ItemList<ResultCollection>(); 84 85 85 for (int i = 0; i < clients; i++) { 86 86 if (!finished[i]) { … … 105 105 106 106 Console.WriteLine("Update results"); 107 broker.Results = results; 107 lock (broker.resultLocker) 108 broker.Results = results; 108 109 } 109 110 … … 114 115 broker.ExitWaitHandle.WaitOne(); 115 116 Console.WriteLine("Finished."); 117 Thread.Sleep(1000); 116 118 service.Close(); 117 119 } else {
Note: See TracChangeset
for help on using the changeset viewer.