many changes associated will disconnecting the channel but not disconnecting the circuit

This commit is contained in:
Jeff Hill
2004-01-09 00:42:15 +00:00
parent 60dde019c0
commit f04fa5fdf3
62 changed files with 3591 additions and 2586 deletions

View File

@@ -28,8 +28,10 @@
#include "nciu.h"
#include "cac.h"
netReadNotifyIO::netReadNotifyIO ( nciu & chanIn, cacReadNotify & notify ) :
notify ( notify ), chan ( chanIn )
netReadNotifyIO::netReadNotifyIO (
privateInterfaceForIO & ioComplIntfIn,
cacReadNotify & notify ) :
notify ( notify ), privateChanForIO ( ioComplIntfIn )
{
}
@@ -43,32 +45,61 @@ void netReadNotifyIO::show ( unsigned /* level */ ) const
static_cast < const void * > ( this ) );
}
void netReadNotifyIO::destroy ( cacRecycle & recycle )
void netReadNotifyIO::destroy (
epicsGuard < epicsMutex > & guard, cacRecycle & recycle )
{
this->~netReadNotifyIO();
recycle.recycleReadNotifyIO ( *this );
this->~netReadNotifyIO ();
recycle.recycleReadNotifyIO ( guard, *this );
}
void netReadNotifyIO::completion ()
void netReadNotifyIO::completion (
epicsGuard < epicsMutex > & guard,
cacRecycle & recycle, unsigned type,
arrayElementCount count, const void * pData )
{
this->chan.getClient().printf ( "Read response w/o data ?\n" );
//guard.assertIdenticalMutex ( this->mutex );
this->notify.completion ( guard, type, count, pData );
this->privateChanForIO.ioCompletionNotify ( guard, *this );
this->~netReadNotifyIO ();
recycle.recycleReadNotifyIO ( guard, *this );
}
void netReadNotifyIO::exception ( int status, const char *pContext )
void netReadNotifyIO::completion (
epicsGuard < epicsMutex > & guard,
cacRecycle & recycle )
{
this->notify.exception ( status, pContext, UINT_MAX, 0u );
//guard.assertIdenticalMutex ( this->mutex );
//this->chan.getClient().printf ( "Read response w/o data ?\n" );
this->privateChanForIO.ioCompletionNotify ( guard, *this );
this->~netReadNotifyIO ();
recycle.recycleReadNotifyIO ( guard, *this );
}
void netReadNotifyIO::exception ( int status, const char *pContext,
unsigned type, arrayElementCount count )
void netReadNotifyIO::exception (
epicsGuard < epicsMutex > & guard,
cacRecycle & recycle,
int status, const char *pContext )
{
this->notify.exception ( status, pContext, type, count );
//guard.assertIdenticalMutex ( this->mutex );
this->notify.exception (
guard, status, pContext, UINT_MAX, 0u );
this->privateChanForIO.ioCompletionNotify ( guard, *this );
this->~netReadNotifyIO ();
recycle.recycleReadNotifyIO ( guard, *this );
}
void netReadNotifyIO::completion ( unsigned type,
arrayElementCount count, const void *pData )
void netReadNotifyIO::exception (
epicsGuard < epicsMutex > & guard,
cacRecycle & recycle,
int status, const char *pContext,
unsigned type, arrayElementCount count )
{
this->notify.completion ( type, count, pData );
//guard.assertIdenticalMutex ( this->mutex )
this->notify.exception (
guard, status, pContext, type, count );
this->privateChanForIO.ioCompletionNotify ( guard, *this );
this->~netReadNotifyIO ();
recycle.recycleReadNotifyIO ( guard, *this );
}
class netSubscription * netReadNotifyIO::isSubscription ()
@@ -76,11 +107,6 @@ class netSubscription * netReadNotifyIO::isSubscription ()
return 0;
}
nciu & netReadNotifyIO::channel () const
{
return this->chan;
}
void * netReadNotifyIO::operator new ( size_t ) // X aCC 361
{
// The HPUX compiler seems to require this even though no code