[host] implemented double buffering

This commit is contained in:
Geoffrey McRae committed 2017-12-12 03:59:55 +11:00
1 parent fcf0976081
commit 16a8acb303
1 file changed
+1 -1
+1 -1
View File
@@ -150,7 +150,6 @@ bool Service::Process()
}
// wait for the host to notify that is it is ready to proceed
ResetEvent(m_readyEvent);
bool eventDone = false;
while (!eventDone)
{
@@ -191,6 +190,7 @@ bool Service::Process()
header->mouseX = cursorPos.x;
header->mouseY = cursorPos.y;
ResetEvent(m_readyEvent);
if (!m_ivshmem->RingDoorbell(header->hostID, 0))
{
DEBUG_ERROR("Failed to ring doorbell");