[Spice-devel] [PATCH qxl-wddm-dod 03/20] fixup! qxl-wddm-dod: Prepare system thread for rendering

Frediano Ziglio fziglio at redhat.com
Tue Mar 28 13:26:58 UTC 2017


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



More information about the Spice-devel mailing list