◆ 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.
119 if (thread_snapshot_ == INVALID_HANDLE_VALUE) {
120 FML_LOG(ERROR) <<
"Failed to get thread snapshot";
123 THREADENTRY32 thread;
124 thread.dwSize =
sizeof(thread);
125 if (!::Thread32First(thread_snapshot_, &thread)) {
126 DWORD error_num = ::GetLastError();
129 FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL,
130 error_num, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), msg, 256,
132 FML_LOG(ERROR) <<
"Failed to get thread(" << error_num <<
"): " << msg;
Referenced by flutter::WindowsLifecycleManager::IsLastWindowOfProcess().
◆ GetNextThread()
bool flutter::ThreadSnapshot::GetNextThread |
( |
THREADENTRY32 & |
thread | ) |
|
|
inline |
The documentation for this class was generated from the following file: