47 lines
1.4 KiB
C
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 ¬ify )
|
|
{
|
|
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
|