Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Dec 20, 2023
1 parent 2916ad2 commit 084f461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unified-scheduler-pool/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ where
let mut thread_managers: Vec<WatchedThreadManager<S, TH, SEA>> = vec![];

'outer: loop {
let /*mut*/ schedulers = scheduler_pool.scheduler_inners.lock().unwrap();
let mut schedulers = scheduler_pool.scheduler_inners.lock().unwrap();
let schedulers_len_pre_retain = schedulers.len();
//schedulers.retain_mut(|scheduler| scheduler.retire_if_stale());
schedulers.retain_mut(|scheduler| scheduler.retire_if_stale());
let schedulers_len_post_retain = schedulers.len();
drop(schedulers);

Expand Down

0 comments on commit 084f461

Please sign in to comment.