mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +00:00
[host] implemented double buffering
This commit is contained in:
parent
fcf0976081
commit
16a8acb303
@ -150,7 +150,6 @@ bool Service::Process()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// wait for the host to notify that is it is ready to proceed
|
// wait for the host to notify that is it is ready to proceed
|
||||||
ResetEvent(m_readyEvent);
|
|
||||||
bool eventDone = false;
|
bool eventDone = false;
|
||||||
while (!eventDone)
|
while (!eventDone)
|
||||||
{
|
{
|
||||||
@ -191,6 +190,7 @@ bool Service::Process()
|
|||||||
header->mouseX = cursorPos.x;
|
header->mouseX = cursorPos.x;
|
||||||
header->mouseY = cursorPos.y;
|
header->mouseY = cursorPos.y;
|
||||||
|
|
||||||
|
ResetEvent(m_readyEvent);
|
||||||
if (!m_ivshmem->RingDoorbell(header->hostID, 0))
|
if (!m_ivshmem->RingDoorbell(header->hostID, 0))
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("Failed to ring doorbell");
|
DEBUG_ERROR("Failed to ring doorbell");
|
||||||
|
Loading…
Reference in New Issue
Block a user