| 1128 | static DWORD MainThreadID; |
| 1129 | |
| 1130 | void GSRunner::PumpPlatformMessages(bool forever) |
| 1131 | { |
| 1132 | MSG msg; |
| 1133 | while (true) |
| 1134 | { |
| 1135 | while (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE)) |
| 1136 | { |
| 1137 | if (msg.message == SHUTDOWN_MSG) |
| 1138 | return; |
| 1139 | TranslateMessage(&msg); |
| 1140 | DispatchMessageW(&msg); |
| 1141 | } |
| 1142 | if (!forever) |
| 1143 | return; |
| 1144 | WaitMessage(); |
| 1145 | } |
| 1146 | } |
| 1147 | |
| 1148 | void GSRunner::StopPlatformMessagePump() |
| 1149 | { |