mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
fix: missing thread name when spawning (#31656)
* Add missing thread name when spawning * Update namings
This commit is contained in:
parent
78fe461ff2
commit
b1debf2068
3 changed files with 36 additions and 28 deletions
|
@ -526,6 +526,7 @@ pub struct CoreResourceThreadPool {
|
|||
impl CoreResourceThreadPool {
|
||||
pub fn new(num_threads: usize) -> CoreResourceThreadPool {
|
||||
let pool = rayon::ThreadPoolBuilder::new()
|
||||
.thread_name(|i| format!("CoreResourceThread#{i}"))
|
||||
.num_threads(num_threads)
|
||||
.build()
|
||||
.unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue