From 20aebe446040d99b604ed81ff49da63bbdca047a Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 13 Jul 2001 02:16:07 +0000 Subject: [PATCH] kludge to test thread switch on Linux --- src/ca/cac.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ca/cac.cpp b/src/ca/cac.cpp index 86ffcb38d..05d74a6c0 100644 --- a/src/ca/cac.cpp +++ b/src/ca/cac.cpp @@ -601,12 +601,10 @@ int cac::pendEvent ( const double &timeout ) else if ( timeout >= CAC_SIGNIFICANT_DELAY ) { epicsThreadSleep ( timeout ); } - else { + while ( this->recvProcessPending ) { // give up the processor while // there is recv processing to be done - while ( this->recvProcessPending ) { - epicsThreadSleep ( CAC_SIGNIFICANT_DELAY ); - } + epicsThreadSleep ( 0.1 ); } }