MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / GuiWaitFor

Function GuiWaitFor

CobaltFusion/GuiExecutor.cpp:153–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153bool GuiWaitFor(std::function<bool ()> pred)
154{
155 while (!pred())
156 {
157 MSG msg;
158 switch (GetMessage(&msg, nullptr, 0, 0 ))
159 {
160 case -1: Win32::ThrowLastError("GetMessage");
161 case 0: return false;
162 }
163
164 TranslateMessage(&msg);
165 DispatchMessage(&msg);
166 }
167 return true;
168}
169
170} // namespace fusion

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 1

ThrowLastErrorFunction · 0.85

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68