From 17dd542c8184a64fbf48151b55ba307598f8116e Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Thu, 29 Mar 2012 12:33:12 +0200 Subject: [PATCH] cec: sleep 5 ms in CUSBCECAdapterCommunication::Process() or other threads won't be able to get a lock This reverts commit 8f611d9d36fc638b357f3eb687e32013d820ec6b. --- src/lib/adapter/USBCECAdapterCommunication.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/adapter/USBCECAdapterCommunication.cpp b/src/lib/adapter/USBCECAdapterCommunication.cpp index 8269d13..527292a 100644 --- a/src/lib/adapter/USBCECAdapterCommunication.cpp +++ b/src/lib/adapter/USBCECAdapterCommunication.cpp @@ -240,7 +240,10 @@ void *CUSBCECAdapterCommunication::Process(void) } if (!IsStopped()) + { + Sleep(5); WriteNextCommand(); + } } /* notify all threads that are waiting on messages to be sent */ -- 2.34.1