diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-08-22 17:42:42 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-08-25 13:21:57 +0200 |
commit | d386f88774df977691f9cb6ab231aa5b085d0b70 (patch) | |
tree | 2e66981b0deab4eddaf3389cd8b7fb6c21004f57 /sal | |
parent | b70fb7d704aa721cf7b1f3ce1120f84f89429479 (diff) |
set names on the Win32-only threads
Nice to see what weird threads are running.
Change-Id: Ic9888aa3260d0aeb5858cde5415571ab23c75484
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/dllentry.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <float.h> #include <osl/mutex.h> +#include <osl/thread.h> #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 ); |