moved odd ball delay == 0.0 is wait forever behavior into
legacy ca_pend_io interface.
This commit is contained in:
+8
-2
@@ -631,9 +631,9 @@ extern "C" int epicsShareAPI ca_pend_event (ca_real timeout)
|
||||
return status;
|
||||
}
|
||||
|
||||
// preserve past odd ball behavior of waiting forever when
|
||||
// the delay is zero
|
||||
if ( timeout == 0.0 ) {
|
||||
// preserve past odd ball behavior of waiting forever when
|
||||
// the delay is zero
|
||||
while ( true ) {
|
||||
pcac->pendEvent ( 60.0 );
|
||||
}
|
||||
@@ -653,6 +653,12 @@ extern "C" int epicsShareAPI ca_pend_io (ca_real timeout)
|
||||
return status;
|
||||
}
|
||||
|
||||
// preserve past odd ball behavior of waiting forever when
|
||||
// the delay is zero
|
||||
if ( timeout == 0.0 ) {
|
||||
return pcac->pendIO ( DBL_MAX );
|
||||
}
|
||||
|
||||
return pcac->pendIO ( timeout );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user