[All] Change threading to be global

This commit is contained in:
Matt Nadareski
2017-07-13 17:03:38 -07:00
parent b7b6247ef0
commit 181716fb41
12 changed files with 50 additions and 48 deletions

View File

@@ -38,7 +38,7 @@ namespace SabreTools.Library.External
}
subdirs.Clear();
Parallel.ForEach(dirs, Globals.ParallelOptions, currentDir =>
Parallel.ForEach(dirs, currentDir =>
{
string[] subDirs = Directory.GetDirectories(currentDir);
@@ -54,7 +54,7 @@ namespace SabreTools.Library.External
try
{
FileInfo[] files = dir.GetFiles("*.*", SearchOption.TopDirectoryOnly);
Parallel.ForEach(files, Globals.ParallelOptions, info =>
Parallel.ForEach(files, info =>
{
action(info);
});