Files
epics-base/src/ca/netReadNotifyIO_IL.h
2001-04-16 22:38:38 +00:00

47 lines
1.4 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 netReadNotifyIO_ILh
#define netReadNotifyIO_ILh
inline netReadNotifyIO * netReadNotifyIO::factory (
tsFreeList < class netReadNotifyIO, 1024 > &freeList,
nciu &chan, cacDataNotify &notify )
{
return new ( freeList ) netReadNotifyIO ( chan, notify );
}
inline void * netReadNotifyIO::operator new ( size_t size,
tsFreeList < class netReadNotifyIO, 1024 > &freeList )
{
return freeList.allocate ( size );
}
// NOTE: The constructor for netReadNotifyIO::netReadNotifyIO() currently does
// not throw an exception, but we should eventually have placement delete
// defined for class netReadNotifyIO when compilers support this so that
// there is no possibility of a leak if there was an exception in
// a future version of netReadNotifyIO::netReadNotifyIO()
#if ! defined ( NO_PLACEMENT_DELETE )
inline void netReadNotifyIO::operator delete ( void *pCadaver, size_t size,
tsFreeList < class netReadNotifyIO, 1024 > &freeList ) {
freeList.release ( pCadaver, size );
}
#endif
#endif // netReadNotifyIO_ILh