Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6950


Ignore:
Timestamp:
11/04/11 16:12:44 (13 years ago)
Author:
epitzer
Message:

Use CheckedItems instead of Items when waiting for available clients (#1667)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/ExternalEvaluator.cs

    r6519 r6950  
    107107      lock (clientLock) {
    108108        client = Clients.CheckedItems.FirstOrDefault(c => !activeClients.Contains(c));
    109         while (client == null && Clients.Count > 0) {
     109        while (client == null && Clients.CheckedItems.Count() > 0) {
    110110          Monitor.Wait(clientLock);
    111111          client = Clients.CheckedItems.FirstOrDefault(c => !activeClients.Contains(c));
Note: See TracChangeset for help on using the changeset viewer.