Give all threads names

This commit is contained in:
Lukas Wirth 2024-02-23 21:50:41 +01:00 committed by Lukas Wirth
parent 9efa23c4da
commit 83a1ad5bfe
4 changed files with 31 additions and 29 deletions

View file

@ -82,6 +82,7 @@ pub fn parallel_prime_caches(
stdx::thread::Builder::new(stdx::thread::ThreadIntent::Worker)
.allow_leak(true)
.name("PrimeCaches".to_owned())
.spawn(move || Cancelled::catch(|| worker(db)))
.expect("failed to spawn thread");
}