Skip to content

Commit

Permalink
Merge pull request #244 from dtolnay/threadname
Browse files Browse the repository at this point in the history
Add thread name for flock thread
  • Loading branch information
dtolnay authored Sep 16, 2023
2 parents 3d6e7ba + 32863fa commit a1d8b13
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 a1d8b13

Please sign in to comment.