optimized free list locking
This commit is contained in:
@@ -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 ¬ifyIn ) :
|
||||
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 );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user