improved management of per channel IO list

This commit is contained in:
Jeff Hill
2000-09-15 17:32:24 +00:00
parent 83c72bce7a
commit db52f124b9
7 changed files with 64 additions and 21 deletions
+14
View File
@@ -22,6 +22,20 @@ cacPrivateListOfIO::cacPrivateListOfIO ( cac &cacIn ) :
{
}
void cacPrivateListOfIO::addIO ( baseNMIU &io )
{
this->cacCtx.cacPrivateListOfIOPrivate::mutex.lock ();
this->eventq.add ( io );
this->cacCtx.cacPrivateListOfIOPrivate::mutex.unlock ();
}
void cacPrivateListOfIO::removeIO ( baseNMIU &io )
{
this->cacCtx.cacPrivateListOfIOPrivate::mutex.lock ();
this->eventq.remove ( io );
this->cacCtx.cacPrivateListOfIOPrivate::mutex.unlock ();
}
// Destroy all IO blocks attached.
// Care is taken here not to hold the lock while
// sending a subscription delete message (which