From: Lars Op den Kamp Date: Wed, 2 Nov 2011 23:21:19 +0000 (+0100) Subject: cec: replaced Sleep() in CAdapterCommunication::Process() by sched_yield() X-Git-Tag: upstream/2.2.0~1^2~133 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d4052f0befbe5b7f1867611c66a5fa5ee4ea7fbf;p=deb_libcec.git cec: replaced Sleep() in CAdapterCommunication::Process() by sched_yield() --- diff --git a/src/lib/AdapterCommunication.cpp b/src/lib/AdapterCommunication.cpp index 00fa87e..3f6f462 100644 --- a/src/lib/AdapterCommunication.cpp +++ b/src/lib/AdapterCommunication.cpp @@ -313,9 +313,9 @@ void *CAdapterCommunication::Process(void) while (!IsStopped()) { ReadFromDevice(500); - Sleep(5); + sched_yield(); WriteNextCommand(); - Sleep(5); + sched_yield(); } return NULL;