fixed conditional

This commit is contained in:
Jeff Hill
2008-09-24 16:29:50 +00:00
parent 7f96b9c0fc
commit 21e8912031

View File

@@ -141,7 +141,7 @@ bool epicsThread::exitWait ( const double delay ) throw ()
double exitWaitElapsed = 0.0;
epicsGuard < epicsMutex > guard ( this->mutex );
this->cancel = true;
while ( ! this->terminated && exitWaitElapsed >= delay ) {
while ( ! this->terminated && exitWaitElapsed < delay ) {
epicsGuardRelease < epicsMutex > unguard ( guard );
this->event.signal ();
this->exitEvent.wait ( delay - exitWaitElapsed );