See https://learn.microsoft.com/en-us/visualstudio/debugger/how-to-set-a-thread-name-in-native-code. The newer API allows for performance analysis tools (such as Tracy) that don't use the debugger API to still view thread names.
Details
Details
- Reviewers
- None
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
llvm/lib/Support/Windows/Threading.inc | ||
---|---|---|
120–128 | Ah, looks like there is a matching new API for getting the thread name: https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getthreaddescription |
Ah, looks like there is a matching new API for getting the thread name: https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getthreaddescription