fixed improper calculation of signal needed state in postEvent

(this is an issue I introduced when writing the patch where IO
and subscription update events are maintained on seperate
and independent queues). The issue does not exist in an
EPICS base release.
This commit is contained in:
Jeff Hill
2009-08-18 00:40:00 +00:00
parent 8ae0c8960f
commit db3a655374
+2 -2
View File
@@ -253,11 +253,11 @@ caStatus casEventPurgeEv::cbFunc (
caStatus casEventSys::addToEventQueue ( casAsyncIOI & event,
bool & onTheQueue, bool & posted, bool & wakeupNeeded )
{
wakeupNeeded = false;
{
epicsGuard < epicsMutex > guard ( this->mutex );
// dont allow them to post completion more than once
if ( posted || onTheQueue ) {
wakeupNeeded = false;
return S_cas_redundantPost;
}
posted = true;
@@ -358,7 +358,7 @@ bool casEventSys::postEvent ( tsDLList < casMonitor > & monitorList,
pLog = 0;
}
signalNeeded =
signalNeeded |=
!this->dontProcessSubscr &&
this->eventLogQue.count() == 0 &&
this->ioQue.count() == 0;