Use our own scoped_pool implementation

This commit is contained in:
Max Brunsfeld
2021-04-20 14:07:36 -07:00
parent 265ad90034
commit 9fd8acdce7
7 changed files with 205 additions and 37 deletions
+1 -1
View File
@@ -411,7 +411,7 @@ impl MutableAppContext {
windows: HashMap::new(),
ref_counts: Arc::new(Mutex::new(RefCounts::default())),
background: Arc::new(executor::Background::new()),
thread_pool: scoped_pool::Pool::new(num_cpus::get()),
thread_pool: scoped_pool::Pool::new(num_cpus::get(), "app"),
},
actions: HashMap::new(),
global_actions: HashMap::new(),