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 netWriteNotifyIO, 1024 > netWriteNotifyIO::freeList;
epicsMutex netWriteNotifyIO::freeListMutex;
netWriteNotifyIO::netWriteNotifyIO ( nciu &chan, cacNotify &notifyIn ) :
baseNMIU ( notifyIn, chan )
{
}
netWriteNotifyIO::~netWriteNotifyIO ()
netWriteNotifyIO::~netWriteNotifyIO ()
{
}
@@ -35,3 +32,16 @@ void netWriteNotifyIO::show ( unsigned level ) const
this->baseNMIU::show ( level - 1u );
}
}
void netWriteNotifyIO::cancel ()
{
this->chan.getClient().destroyWriteNotifyIO ( *this );
}
void netWriteNotifyIO::destroy ( cacRecycle & recycle )
{
this->~netWriteNotifyIO ();
recycle.recycleWriteNotifyIO ( *this );
}