wined3d: Set name of internal threads.

This commit is contained in:
Brendan Shanks 2022-09-26 14:15:40 -07:00 committed by Alexandre Julliard
parent 746ad6f76e
commit a2c03e2356
3 changed files with 5 additions and 0 deletions

View file

@ -3354,6 +3354,7 @@ static DWORD WINAPI wined3d_cs_run(void *ctx)
bool run = true;
TRACE("Started.\n");
SetThreadDescription(GetCurrentThread(), L"wined3d_cs");
/* Copy the module handle to a local variable to avoid racing with the
* thread freeing "cs" before the FreeLibraryAndExitThread() call. */

View file

@ -1069,6 +1069,8 @@ static DWORD CALLBACK notification_thread_func(void *stop_event)
struct wined3d_video_memory_info info;
HRESULT hr;
SetThreadDescription(GetCurrentThread(), L"wined3d_budget_change_notification");
while (TRUE)
{
wined3d_mutex_lock();

View file

@ -2194,6 +2194,8 @@ static DWORD WINAPI wined3d_set_window_state(void *ctx)
struct wined3d_window_state *s = ctx;
bool filter;
SetThreadDescription(GetCurrentThread(), L"wined3d_set_window_state");
filter = wined3d_filter_messages(s->window, TRUE);
if (s->set_style)