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,9 +15,6 @@
#include "nciu_IL.h"
#include "baseNMIU_IL.h"
tsFreeList < class netSubscription, 1024 > netSubscription::freeList;
epicsMutex netSubscription::freeListMutex;
netSubscription::netSubscription ( nciu &chan, unsigned typeIn, unsigned long countIn,
unsigned maskIn, cacNotify &notifyIn ) :
baseNMIU ( notifyIn, chan ),
@@ -29,6 +26,17 @@ netSubscription::~netSubscription ()
{
}
void netSubscription::cancel ()
{
this->chan.getClient().destroySubscription ( *this );
}
void netSubscription::destroy ( cacRecycle &recycle )
{
this->~netSubscription ();
recycle.recycleSubscription ( *this );
}
class netSubscription * netSubscription::isSubscription ()
{
return this;