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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user