MCPcopy Create free account
hub / github.com/deskflow/deskflow / MSWindowsEventQueueBuffer

Method MSWindowsEventQueueBuffer

src/lib/platform/MSWindowsEventQueueBuffer.cpp:18–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16//
17
18MSWindowsEventQueueBuffer::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
34void MSWindowsEventQueueBuffer::waitForEvent(double timeout)
35{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected