Do not wait thread initialization. System should initialize thread quite fast, no need to wait. This also fix a dead lock in case the system fails to create the thread. --- qxldod/QxlDod.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp index 3337c2a..cba140c 100755 --- a/qxldod/QxlDod.cpp +++ b/qxldod/QxlDod.cpp @@ -3448,8 +3448,6 @@ NTSTATUS QxlDevice::StartPresentThread() OBJECT_ATTRIBUTES ObjectAttributes; NTSTATUS Status; - KeClearEvent(&m_PresentThreadReadyEvent); - InitializeObjectAttributes(&ObjectAttributes, NULL, OBJ_KERNEL_HANDLE, NULL, NULL); Status = PsCreateSystemThread( &m_PresentThread, @@ -3460,8 +3458,6 @@ NTSTATUS QxlDevice::StartPresentThread() PresentThreadRoutineWrapper, this); - WaitForObject(&m_PresentThreadReadyEvent, NULL); - return Status; } -- 2.9.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel