kludge to test thread switch on Linux

This commit is contained in:
Jeff Hill
2001-07-13 02:16:07 +00:00
parent 2758df6db2
commit 20aebe4460

View File

@@ -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 );
}
}