moved odd ball delay == 0.0 is wait forever behavior into
legacy ca_pend_event interface so that we dont need to keep doing this in the future.
This commit is contained in:
@@ -631,6 +631,14 @@ extern "C" int epicsShareAPI ca_pend_event (ca_real timeout)
|
||||
return status;
|
||||
}
|
||||
|
||||
if ( timeout == 0.0 ) {
|
||||
// preserve past odd ball behavior of waiting forever when
|
||||
// the delay is zero
|
||||
while ( true ) {
|
||||
pcac->pendEvent ( 60.0 );
|
||||
}
|
||||
}
|
||||
|
||||
return pcac->pendEvent ( timeout );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user