This commit is contained in:
Jeff Hill
2001-03-07 16:25:34 +00:00
parent e1a60910e9
commit 922dece548
3 changed files with 0 additions and 118 deletions

View File

@@ -1,85 +0,0 @@
/* $Id$
*
* L O S A L A M O S
* Los Alamos National Laboratory
* Los Alamos, New Mexico 87545
*
* Copyright, 1986, The Regents of the University of California.
*
* Author: Jeff Hill
*/
#include "iocinf.h"
#include "netReadCopyIO_IL.h"
#include "nciu_IL.h"
#include "baseNMIU_IL.h"
tsFreeList < class netReadCopyIO, 1024 > netReadCopyIO::freeList;
netReadCopyIO::netReadCopyIO ( nciu &chanIn, unsigned typeIn, unsigned long countIn,
void *pValueIn, unsigned seqNumberIn ) :
baseNMIU ( chanIn ), type ( typeIn ), count ( countIn ),
pValue ( pValueIn ), seqNumber ( seqNumberIn )
{
this->chan.incrementOutstandingIO ( seqNumberIn );
}
netReadCopyIO::~netReadCopyIO ()
{
}
void netReadCopyIO::completionNotify ()
{
this->exceptionNotify ( ECA_INTERNAL, "get completion callback with no data?" );
}
void netReadCopyIO::completionNotify ( unsigned typeIn,
unsigned long countIn, const void *pDataIn )
{
if ( typeIn <= (unsigned) LAST_BUFFER_TYPE ) {
# ifdef CONVERSION_REQUIRED
(*cac_dbr_cvrt[type]) ( pDataIn, this->pValue,
FALSE, countIn );
# else
memcpy ( this->pValue, pDataIn,
dbr_size_n ( typeIn, countIn ) );
# endif
this->chan.decrementOutstandingIO ( this->seqNumber );
}
else {
this->exceptionNotify ( ECA_INTERNAL, "bad data type in message" );
}
}
void netReadCopyIO::exceptionNotify ( int status, const char *pContext )
{
ca_signal_formated ( status, __FILE__, __LINE__,
"%s chan=%s\n", pContext, this->channelIO ().pName () );
}
void netReadCopyIO::exceptionNotify ( int status,
const char *pContextIn, unsigned typeIn, unsigned long countIn )
{
ca_signal_formated ( status, __FILE__, __LINE__,
"%s chan=%s type=%d count=%ld\n", pContextIn,
this->channelIO ().pName (), typeIn, countIn);
}
cacChannelIO & netReadCopyIO::channelIO () const
{
return this->channel ();
}
void netReadCopyIO::show ( unsigned level ) const
{
int tmpType = static_cast <int> ( this->type );
printf ( "read copy IO at %p, type %s, element count %lu\n",
static_cast <const void *> ( this ), dbf_type_to_text ( tmpType ), this->count );
if ( level > 0u ) {
printf ( "\tsequence number %u, user's storage %p\n",
this->seqNumber, this->pValue );
this->baseNMIU::show ( level - 1u );
}
}

View File

@@ -1,31 +0,0 @@
/*
* $Id$
*
*
* L O S A L A M O S
* Los Alamos National Laboratory
* Los Alamos, New Mexico 87545
*
* Copyright, 1986, The Regents of the University of California.
*
*
* Author Jeffrey O. Hill
* johill@lanl.gov
* 505 665 1831
*/
#ifndef netReadCopyIO_ILh
#define netReadCopyIO_ILh
inline void * netReadCopyIO::operator new ( size_t size )
{
return netReadCopyIO::freeList.allocate ( size );
}
inline void netReadCopyIO::operator delete ( void *pCadaver, size_t size )
{
netReadCopyIO::freeList.release ( pCadaver, size );
}
#endif // netReadCopyIO_ILh

View File

@@ -1,2 +0,0 @@
#error defunct