From d4052f0befbe5b7f1867611c66a5fa5ee4ea7fbf Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Thu, 3 Nov 2011 00:21:19 +0100 Subject: [PATCH] cec: replaced Sleep() in CAdapterCommunication::Process() by sched_yield() --- src/lib/AdapterCommunication.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.34.1