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

wined3d: Set name of internal threads.

parent 746ad6f7
......@@ -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. */
......
......@@ -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();
......
......@@ -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)
......
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