optimized free list locking

This commit is contained in:
Jeff Hill
2001-03-22 22:12:09 +00:00
parent 8629f103d6
commit ef696499e4
12 changed files with 290 additions and 192 deletions

View File

@@ -15,15 +15,12 @@
#include "nciu_IL.h"
#include "baseNMIU_IL.h"
tsFreeList < class netReadNotifyIO, 1024 > netReadNotifyIO::freeList;
epicsMutex netReadNotifyIO::freeListMutex;
netReadNotifyIO::netReadNotifyIO ( nciu &chan, cacNotify &notifyIn ) :
baseNMIU ( notifyIn, chan )
{
}
netReadNotifyIO::~netReadNotifyIO ()
netReadNotifyIO::~netReadNotifyIO ()
{
}
@@ -35,3 +32,16 @@ void netReadNotifyIO::show ( unsigned level ) const
this->baseNMIU::show ( level - 1u );
}
}
void netReadNotifyIO::cancel ()
{
this->chan.getClient().destroyReadNotifyIO ( *this );
}
void netReadNotifyIO::destroy ( cacRecycle & recycle )
{
this->~netReadNotifyIO();
recycle.recycleReadNotifyIO ( *this );
}