Commit ed666db8 authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

ntdll: Set the QoS class of the main Wine thread on macOS.

parent fd7cee3e
......@@ -2335,6 +2335,9 @@ static void apple_create_wine_thread( void *arg )
pthread_attr_init( &attr );
pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_JOINABLE );
/* Use the same QoS class as the process main thread (user-interactive). */
if (pthread_attr_set_qos_class_np)
pthread_attr_set_qos_class_np( &attr, QOS_CLASS_USER_INTERACTIVE, 0 );
if (pthread_create( &thread, &attr, apple_wine_thread, NULL )) exit(1);
pthread_attr_destroy( &attr );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment