Wrap platform-specific QoS in r-a-specific “thread intent”
This commit is contained in:
parent
d0b001eed2
commit
74bc2a47e0
13 changed files with 354 additions and 295 deletions
|
|
@ -81,7 +81,7 @@ pub(crate) fn parallel_prime_caches(
|
|||
let worker = prime_caches_worker.clone();
|
||||
let db = db.snapshot();
|
||||
|
||||
stdx::thread::Builder::new(stdx::thread::QoSClass::Utility)
|
||||
stdx::thread::Builder::new(stdx::thread::ThreadIntent::Worker)
|
||||
.allow_leak(true)
|
||||
.spawn(move || Cancelled::catch(|| worker(db)))
|
||||
.expect("failed to spawn thread");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue