Module: wine Branch: master Commit: 3f0166fa89616e409e0381415e23302479100d3a URL: https://gitlab.winehq.org/wine/wine/-/commit/3f0166fa89616e409e0381415e23302...
Author: Brendan Shanks bshanks@codeweavers.com Date: Fri Sep 23 09:49:25 2022 -0700
rpcrt4: Set the name of internal threads.
---
dlls/rpcrt4/rpc_server.c | 2 ++ dlls/rpcrt4/rpc_transport.c | 2 ++ 2 files changed, 4 insertions(+)
diff --git a/dlls/rpcrt4/rpc_server.c b/dlls/rpcrt4/rpc_server.c index cb62c59e368..30ff585ad50 100644 --- a/dlls/rpcrt4/rpc_server.c +++ b/dlls/rpcrt4/rpc_server.c @@ -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); diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c index 8c615b71dd9..9509b2850b6 100644 --- a/dlls/rpcrt4/rpc_transport.c +++ b/dlls/rpcrt4/rpc_transport.c @@ -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);