mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 11:39:16 +08:00
Use default thread pool settings
This commit is contained in:
parent
681f57f703
commit
8476baacc7
@ -46,9 +46,6 @@ namespace Wox
|
|||||||
WoxDirectroy.Executable = Directory.GetParent(Assembly.GetExecutingAssembly().Location).ToString();
|
WoxDirectroy.Executable = Directory.GetParent(Assembly.GetExecutingAssembly().Location).ToString();
|
||||||
RegisterUnhandledException();
|
RegisterUnhandledException();
|
||||||
|
|
||||||
ThreadPool.SetMaxThreads(30, 10);
|
|
||||||
ThreadPool.SetMinThreads(10, 5);
|
|
||||||
|
|
||||||
ImageLoader = new ImageLoader.ImageLoader();
|
ImageLoader = new ImageLoader.ImageLoader();
|
||||||
ThreadPool.QueueUserWorkItem(_ => { ImageLoader.PreloadImages(); });
|
ThreadPool.QueueUserWorkItem(_ => { ImageLoader.PreloadImages(); });
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user