diff options
author | Hyungju Lee <leee.lee@samsung.com> | 2022-09-22 06:16:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-22 06:16:12 +0300 |
commit | e013f9dfc31c49c34428ea3400eb0a0a7a8f1e24 (patch) | |
tree | 6709348c28048ac795b4b1709cce5b244c5f587b /src/coreclr/pal | |
parent | c81e7a216a3f3c65ae2803381815861d846a7a74 (diff) |
Set names to runtime internal threads (#75113)
* Set names to runtime internal threads
* Fix MAC build
* Shorten ThreadPool thread names
* Fix not to return SetThreadDescription()
* Change SetThreadDescription to SetThreadName
* Set thread names inside thread functions
* Add missing name for MAC
* Move name change info thread function
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Diffstat (limited to 'src/coreclr/pal')
-rw-r--r-- | src/coreclr/pal/src/synchmgr/synchmanager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/coreclr/pal/src/synchmgr/synchmanager.cpp b/src/coreclr/pal/src/synchmgr/synchmanager.cpp index 091e746a817..d8a4fcfe00b 100644 --- a/src/coreclr/pal/src/synchmgr/synchmanager.cpp +++ b/src/coreclr/pal/src/synchmgr/synchmanager.cpp @@ -1707,6 +1707,10 @@ namespace CorUnix reinterpret_cast<CPalSynchronizationManager*>(pArg); CPalThread * pthrWorker = InternalGetCurrentThread(); + InternalSetThreadDescription(pthrWorker, + PAL_GetCurrentThread(), + W(".NET SynchManager")); + while (!fWorkerIsDone) { LONG lProcessCount; |