From 59efaa29792ba7e9e0d14d055953c4b95e0f7185 Mon Sep 17 00:00:00 2001 From: Jasper Bekkers Date: Mon, 14 Feb 2022 17:22:47 +0100 Subject: [PATCH] Clarified names a bit more --- src/fsevent.rs | 2 +- src/inotify.rs | 2 +- src/kqueue.rs | 2 +- src/poll.rs | 2 +- src/windows.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fsevent.rs b/src/fsevent.rs index af124842..c1200903 100644 --- a/src/fsevent.rs +++ b/src/fsevent.rs @@ -433,7 +433,7 @@ impl FsEventWatcher { let (rl_tx, rl_rx) = unbounded(); let thread_handle = thread::Builder::new() - .name("notify-rs fsevents".to_string()) + .name("notify-rs fsevents loop".to_string()) .spawn(move || { let stream = stream.0; diff --git a/src/inotify.rs b/src/inotify.rs index c930be64..83481cb2 100644 --- a/src/inotify.rs +++ b/src/inotify.rs @@ -129,7 +129,7 @@ impl EventLoop { // Run the event loop. pub fn run(self) { let _ = thread::Builder::new() - .name("notify-rs inotify".to_string()) + .name("notify-rs inotify loop".to_string()) .spawn(|| self.event_loop_thread()); } diff --git a/src/kqueue.rs b/src/kqueue.rs index 6c4c338d..51a1990d 100644 --- a/src/kqueue.rs +++ b/src/kqueue.rs @@ -77,7 +77,7 @@ impl EventLoop { // Run the event loop. pub fn run(self) { let _ = thread::Builder::new() - .name("notify-rs kqueue".to_string()) + .name("notify-rs kqueue loop".to_string()) .spawn(|| self.event_loop_thread()); } diff --git a/src/poll.rs b/src/poll.rs index a2f74836..04e60caa 100644 --- a/src/poll.rs +++ b/src/poll.rs @@ -77,7 +77,7 @@ impl PollWatcher { let event_handler = move |res| emit_event(&event_handler, res); let _ = thread::Builder::new() - .name("notify-rs poll".to_string()) + .name("notify-rs poll loop".to_string()) .spawn(move || { // In order of priority: // TODO: handle metadata events diff --git a/src/windows.rs b/src/windows.rs index 3c007be6..bfa3fa54 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -85,7 +85,7 @@ impl ReadDirectoryChangesServer { // it is, in fact, ok to send the semaphore across threads let sem_temp = wakeup_sem as u64; let _ = thread::Builder::new() - .name("notify-rs windows".to_string()) + .name("notify-rs windows loop".to_string()) .spawn(move || { let wakeup_sem = sem_temp as HANDLE; let server = ReadDirectoryChangesServer {