From: Lars Op den Kamp Date: Thu, 29 Mar 2012 10:33:12 +0000 (+0200) Subject: cec: sleep 5 ms in CUSBCECAdapterCommunication::Process() or other threads won't... X-Git-Tag: upstream/2.2.0~1^2~31^2~34 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=17dd542c8184a64fbf48151b55ba307598f8116e;p=deb_libcec.git cec: sleep 5 ms in CUSBCECAdapterCommunication::Process() or other threads won't be able to get a lock This reverts commit 8f611d9d36fc638b357f3eb687e32013d820ec6b. --- 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 */