Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2163 for trunk


Ignore:
Timestamp:
07/15/09 17:51:12 (15 years ago)
Author:
gkronber
Message:

Fixed #708 (Race condition on abort of SupportVectorCreator operator)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.SupportVectorMachines/3.2/SupportVectorCreator.cs

    r2036 r2163  
    105105        if (!abortRequested) {
    106106          trainingThread = new Thread(() => {
    107               model = SVM.Training.Train(scaledProblem, parameter);
     107            model = SVM.Training.Train(scaledProblem, parameter);
    108108          });
    109109          trainingThread.Start();
    110110        }
    111111      }
    112       trainingThread.Join();
    113       trainingThread = null;
     112      if (!abortRequested) {
     113        trainingThread.Join();
     114        trainingThread = null;
     115      }
    114116      return model;
    115117    }
Note: See TracChangeset for help on using the changeset viewer.