summaryrefslogtreecommitdiff
path: root/src/vm/threads.h
diff options
context:
space:
mode:
authorVance Morrison <vancem@microsoft.com>2018-05-30 05:38:21 -0700
committerJan Kotas <jkotas@microsoft.com>2018-05-30 05:38:21 -0700
commit3148a6dd0a1999cbb987b12de2368a7c0b09077e (patch)
tree9f825f592d822a289cef59bb9b06f30455847bcc /src/vm/threads.h
parent4445c056a4a1fa23dc18674b3719d78c38435f06 (diff)
downloadcoreclr-3148a6dd0a1999cbb987b12de2368a7c0b09077e.tar.gz
coreclr-3148a6dd0a1999cbb987b12de2368a7c0b09077e.tar.bz2
coreclr-3148a6dd0a1999cbb987b12de2368a7c0b09077e.zip
Improve the labeling of .NET Threads. (#18193)
There was already some support for labeling threads using the Window SetThreadDescription API, however it was missing some important cases (like labeling the ThreadPool and GC server and Background threads). Fix this. Also make the naming consistant (they all start with .NET). These names show up in PerfView traces and can be used by debuggers or other profilers as well.
Diffstat (limited to 'src/vm/threads.h')
-rw-r--r--src/vm/threads.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/threads.h b/src/vm/threads.h
index 70fcb522c8..637d3baa00 100644
--- a/src/vm/threads.h
+++ b/src/vm/threads.h
@@ -1949,7 +1949,7 @@ public:
// Creates a raw OS thread; use this only for CLR-internal threads that never execute user code.
// StackSizeBucket determines how large the stack should be.
//
- static HANDLE CreateUtilityThread(StackSizeBucket stackSizeBucket, LPTHREAD_START_ROUTINE start, void *args, DWORD flags = 0, DWORD* pThreadId = NULL);
+ static HANDLE CreateUtilityThread(StackSizeBucket stackSizeBucket, LPTHREAD_START_ROUTINE start, void *args, LPCWSTR pName, DWORD flags = 0, DWORD* pThreadId = NULL);
//--------------------------------------------------------------
// Destructor