diff --git a/src/platform_impl/windows/event_loop.rs b/src/platform_impl/windows/event_loop.rs index 963a3830..6d5f9d44 100644 --- a/src/platform_impl/windows/event_loop.rs +++ b/src/platform_impl/windows/event_loop.rs @@ -205,7 +205,10 @@ impl EventLoop { let thread_msg_target = create_event_target_window::(); - thread::spawn(move || wait_thread(thread_id, thread_msg_target)); + thread::Builder::new() + .name("winit wait thread".to_string()) + .spawn(move || wait_thread(thread_id, thread_msg_target)) + .expect("Failed to spawn winit wait thread"); let wait_thread_id = get_wait_thread_id(); let runner_shared = Rc::new(EventLoopRunner::new(thread_msg_target, wait_thread_id));