fixed locking associated with the cleanup flag

(this is not a known problem, the problem was identified instead during code inspection)
This commit is contained in:
Jeff Hill
2004-07-30 23:34:24 +00:00
parent 75ddcbaf06
commit ac8dc4facd

View File

@@ -234,9 +234,12 @@ ipAddrToAsciiTransaction & ipAddrToAsciiEnginePrivate::createTransaction ()
void ipAddrToAsciiEnginePrivate::run ()
{
epicsGuard < epicsMutex > guard ( this->mutex );
while ( ! this->exitFlag ) {
this->laborEvent.wait ();
epicsGuard < epicsMutex > guard ( this->mutex );
{
epicsGuardRelease < epicsMutex > unguard ( guard );
this->laborEvent.wait ();
}
while ( true ) {
ipAddrToAsciiTransactionPrivate * pItem = this->labor.get ();
if ( ! pItem ) {