rpcrt4: Set the name of internal threads.

This commit is contained in:
Brendan Shanks 2022-09-23 09:49:25 -07:00 committed by Alexandre Julliard
parent fa8e36fafa
commit 3f0166fa89
2 changed files with 4 additions and 0 deletions

View file

@ -551,6 +551,7 @@ static DWORD CALLBACK RPCRT4_io_thread(LPVOID the_arg)
ULONG auth_length;
TRACE("(%p)\n", conn);
SetThreadDescription(GetCurrentThread(), L"wine_rpcrt4_io");
for (;;) {
msg = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(RPC_MESSAGE));
@ -648,6 +649,7 @@ static DWORD CALLBACK RPCRT4_server_thread(LPVOID the_arg)
BOOL set_ready_event = FALSE;
TRACE("(the_arg == ^%p)\n", the_arg);
SetThreadDescription(GetCurrentThread(), L"wine_rpcrt4_server");
for (;;) {
objs = cps->ops->get_wait_array(cps, objs, &count);

View file

@ -1802,6 +1802,8 @@ static DWORD CALLBACK rpcrt4_http_timer_thread(PVOID param)
HttpTimerThreadData data;
DWORD timeout;
SetThreadDescription(GetCurrentThread(), L"wine_rpcrt4_http_timer");
data = *data_in;
HeapFree(GetProcessHeap(), 0, data_in);