================
@@ -99,17 +101,25 @@ Status NativeThreadWindows::DoResume(lldb::StateType
resume_state) {
}
std::string NativeThreadWindows::GetName() {
- if (!m_name.empty())
+ Log *log = GetLog(LLDBLog::Thread);
+ static LazyImport<HRESULT(WINAPI *)(HANDLE, PWSTR *)> kGetThreadDescription{
----------------
charles-zablit wrote:
> So using a static here is ok because this class deals with threads. Right?
Yes that's correct, as long as the dll is not unloaded.
https://github.com/llvm/llvm-project/pull/199983
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits