From d386f88774df977691f9cb6ab231aa5b085d0b70 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 22 Aug 2014 17:42:42 +0200 Subject: set names on the Win32-only threads Nice to see what weird threads are running. Change-Id: Ic9888aa3260d0aeb5858cde5415571ab23c75484 --- sal/osl/w32/dllentry.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sal') diff --git a/sal/osl/w32/dllentry.c b/sal/osl/w32/dllentry.c index 1441f3e291a7..f16cab7e773a 100644 --- a/sal/osl/w32/dllentry.c +++ b/sal/osl/w32/dllentry.c @@ -32,6 +32,7 @@ #include #include +#include #include "internal/rtllifecycle.h" @@ -260,6 +261,8 @@ static DWORD GetParentProcessId() static DWORD WINAPI ParentMonitorThreadProc( LPVOID lpParam ) { + osl_setThreadName("headless ParentMonitorThread"); + DWORD_PTR dwParentProcessId = (DWORD_PTR)lpParam; HANDLE hParentProcess = OpenProcess( SYNCHRONIZE, FALSE, dwParentProcessId ); -- cgit