| 16 | // |
| 17 | |
| 18 | MSWindowsEventQueueBuffer::MSWindowsEventQueueBuffer(IEventQueue *events) : m_events(events) |
| 19 | { |
| 20 | // remember thread. we'll be posting messages to it. |
| 21 | m_thread = GetCurrentThreadId(); |
| 22 | |
| 23 | // create a message type for custom events |
| 24 | m_userEvent = RegisterWindowMessage(L"DESKFLOW_USER_EVENT"); |
| 25 | |
| 26 | // get message type for daemon quit |
| 27 | m_daemonQuit = ArchDaemonWindows::getDaemonQuitMessage(); |
| 28 | |
| 29 | // make sure this thread has a message queue |
| 30 | MSG dummy; |
| 31 | PeekMessage(&dummy, nullptr, WM_USER, WM_USER, PM_NOREMOVE); |
| 32 | } |
| 33 | |
| 34 | void MSWindowsEventQueueBuffer::waitForEvent(double timeout) |
| 35 | { |
nothing calls this directly
no outgoing calls
no test coverage detected