Skip to content

Commit

Permalink
Add thread name for flock thread
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 16, 2023
1 parent 3d6e7ba commit 32863fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/flock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ impl FileLock {
Some(lockfile) => lockfile,
};
let done = Arc::new(AtomicBool::new(false));
thread::Builder::new().spawn({
let thread = thread::Builder::new().name("trybuild-flock".to_owned());
thread.spawn({
let done = Arc::clone(&done);
move || poll(lockfile, done)
})?;
Expand Down

0 comments on commit 32863fa

Please sign in to comment.