◆ ThreadSnapshot()
flutter::ThreadSnapshot::ThreadSnapshot |
( |
| ) |
|
|
inline |
◆ ~ThreadSnapshot()
flutter::ThreadSnapshot::~ThreadSnapshot |
( |
| ) |
|
|
inline |
◆ GetFirstThread()
std::optional< THREADENTRY32 > flutter::ThreadSnapshot::GetFirstThread |
( |
| ) |
|
|
inline |
Definition at line 118 of file windows_lifecycle_manager.cc.
118 {
121 return std::nullopt;
122 }
123 THREADENTRY32 thread;
124 thread.dwSize = sizeof(thread);
125 if (!::Thread32First(thread_snapshot_, &thread)) {
127 char msg[256];
128 ::FormatMessageA(
129 FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL,
130 error_num, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), msg, 256,
131 nullptr);
132 FML_LOG(
ERROR) <<
"Failed to get thread(" << error_num <<
"): " << msg;
133 return std::nullopt;
134 }
135 return thread;
136 }
#define FML_LOG(severity)
WINBASEAPI _Check_return_ _Post_equals_last_error_ DWORD WINAPI GetLastError(VOID)
◆ GetNextThread()
bool flutter::ThreadSnapshot::GetNextThread |
( |
THREADENTRY32 & |
thread | ) |
|
|
inline |
The documentation for this class was generated from the following file: