fixed solaris warnings

This commit is contained in:
Jeff Hill
2004-01-23 19:55:11 +00:00
parent 8087b29199
commit bb05cea3c1
27 changed files with 891 additions and 551 deletions
+3 -3
View File
@@ -93,15 +93,15 @@ void epicsThread::exitWait ()
bool epicsThread::exitWait ( double delay )
{
{
epicsTime begin = epicsTime::getCurrent ();
epicsTime exitWaitBegin = epicsTime::getCurrent ();
epicsGuard < epicsMutex > guard ( this->mutex );
double elapsed = 0.0;
while ( ! this->terminated ) {
epicsGuardRelease < epicsMutex > unguard ( guard );
this->event.wait ( delay - elapsed );
epicsTime current = epicsTime::getCurrent ();
double elapsed = current - begin;
if ( elapsed >= delay ) {
double exitWaitElapsed = current - exitWaitBegin;
if ( exitWaitElapsed >= delay ) {
break;
}
}