Files
pcas/src/ca/msgForMultiplyDefinedPV.h
2002-03-21 23:10:06 +00:00

60 lines
1.7 KiB
C++

/*
* $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 msgForMultiplyDefinedPVh
#define msgForMultiplyDefinedPVh
#include "ipAddrToAsciiAsynchronous.h"
#include "tsFreeList.h"
#include "epicsSingleton.h"
#include "epicsMutex.h"
class cac;
class callbackMutex;
class msgForMultiplyDefinedPV : public ipAddrToAsciiAsynchronous {
public:
msgForMultiplyDefinedPV ( callbackMutex &,
cac & cacRefIn, const char * pChannelName, const char * pAcc,
const osiSockAddr & rej );
msgForMultiplyDefinedPV ( const osiSockAddr &addr, ipAddrToAsciiEngine &engine );
void * operator new ( size_t size );
void operator delete ( void *pCadaver, size_t size );
private:
void ioCompletionNotify ( const char *pHostName );
char acc[64];
char channel[64];
cac & cacRef;
callbackMutex & mutex;
static epicsSingleton < tsFreeList < class msgForMultiplyDefinedPV, 16 > > pFreeList;
msgForMultiplyDefinedPV ( const msgForMultiplyDefinedPV & );
msgForMultiplyDefinedPV & operator = ( const msgForMultiplyDefinedPV & );
};
inline void * msgForMultiplyDefinedPV::operator new ( size_t size )
{
return msgForMultiplyDefinedPV::pFreeList->allocate ( size );
}
inline void msgForMultiplyDefinedPV::operator delete ( void *pCadaver, size_t size )
{
msgForMultiplyDefinedPV::pFreeList->release ( pCadaver, size );
}
#endif // ifdef msgForMultiplyDefinedPVh