Exemple #1
0
        protected override void AddInProgress(Step step)
        {
            var a = new async(() => FindSolution(step), _threadPool);

            _lockStepInProgress.EnterWriteLock();
            try
            {
                StepInProgress.Add(a);
            }
            finally
            {
                _lockStepInProgress.ExitWriteLock();
            }
        }
Exemple #2
0
 protected override void AddInProgress(Step step)
 {
     StepInProgress.Add(step);
     FindSolution(step);
     StepInProgress.Remove(step);
 }