On Windows, name the waiter thread (#2672)

This commit is contained in:
John Nunley 2023-02-08 12:39:01 -08:00 committed by GitHub
parent 5ba6bdef49
commit 37c0f615cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,7 +205,10 @@ impl<T: 'static> EventLoop<T> {
let thread_msg_target = create_event_target_window::<T>();
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));