Changeset - 3e36d49355f5
[Not reviewed]
default
0 1 0
Jason Maltzen (jmaltzen) - 8 years ago 2015-12-27 09:42:27
jason.maltzen@unsanctioned.net
Re-enable multiple worker threads.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
RecipeGenerator.cs
Show inline comments
...
 
@@ -260,13 +260,13 @@ namespace DesertPaintLab
 
            if (log != null)
 
            {
 
                log.WriteLine("Resuming recipe generation: pre-threads={0} reagent count={1} search queue={2}", runningThreads, costSortedReagents.Count, searchQueue.Count);
 
            }
 
            runningThreads = 0; // presumably!
 

	
 
            int threadCount = 1; // Math.Min(costSortedReagents.Count, searchQueue.Count);
 
            int threadCount = Math.Min(costSortedReagents.Count, searchQueue.Count);
 
            if (threadCount == 0)
 
            {
 
                if (Finished != null)
 
                {
 
                    Finished(this, null);
 
                }
0 comments (0 inline, 0 general)