mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
On Windows, name the waiter thread (#2672)
This commit is contained in:
parent
5ba6bdef49
commit
37c0f615cf
|
@ -205,7 +205,10 @@ impl<T: 'static> EventLoop<T> {
|
||||||
|
|
||||||
let thread_msg_target = create_event_target_window::<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 wait_thread_id = get_wait_thread_id();
|
||||||
|
|
||||||
let runner_shared = Rc::new(EventLoopRunner::new(thread_msg_target, wait_thread_id));
|
let runner_shared = Rc::new(EventLoopRunner::new(thread_msg_target, wait_thread_id));
|
||||||
|
|
Loading…
Reference in a new issue