Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/28/16 15:46:10 (9 years ago)
Author:
bburlacu
Message:

#2603: Remove EventWaitHandle.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimizer/3.3/CreateExperimentDialog.cs

    r13681 r13813  
    2626using System.Linq;
    2727using System.Text;
    28 using System.Threading;
    2928using System.Windows.Forms;
    3029using HeuristicLab.Core;
     
    6463
    6564    private StringBuilder failedInstances;
    66     private readonly EventWaitHandle backgroundWorkerWaitHandle = new ManualResetEvent(false);
    6765    private bool suppressTreeViewEventHandling, suppressCheckAllNoneEventHandling;
    6866
     
    105103      SetMode(DialogMode.CreatingExperiment);
    106104      experimentCreationBackgroundWorker.RunWorkerAsync();
    107       backgroundWorkerWaitHandle.WaitOne(); // make sure the background worker has started before exiting
    108105    }
    109106
     
    767764    #region Experiment creation
    768765    private void experimentCreationBackgroundWorker_DoWork(object sender, DoWorkEventArgs e) {
    769       backgroundWorkerWaitHandle.Set(); // notify the ok button that we're busy now
    770766      failedInstances = new StringBuilder();
    771767      var localExperiment = new Experiment();
Note: See TracChangeset for help on using the changeset viewer.