cec: replaced Sleep() in CAdapterCommunication::Process() by sched_yield()
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 2 Nov 2011 23:21:19 +0000 (00:21 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 2 Nov 2011 23:21:19 +0000 (00:21 +0100)
src/lib/AdapterCommunication.cpp

index 00fa87e408615828cf0615dd045d1e1df74f5bc8..3f6f462581cdcfb757d00a663f0ad70f7779e0a8 100644 (file)
@@ -313,9 +313,9 @@ void *CAdapterCommunication::Process(void)
   while (!IsStopped())
   {
     ReadFromDevice(500);
-    Sleep(5);
+    sched_yield();
     WriteNextCommand();
-    Sleep(5);
+    sched_yield();
   }
 
   return NULL;