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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]