many, many changes
This commit is contained in:
@@ -28,3 +28,22 @@ inline void netWriteNotifyIO::operator delete ( void *pCadaver, size_t size )
|
||||
netWriteNotifyIO::freeList.release ( pCadaver, size );
|
||||
}
|
||||
|
||||
//
|
||||
// we need to be careful about exporting a raw IO
|
||||
// pointer because the IO object may be deleted
|
||||
// at any time when the channel disconnects or the
|
||||
// IO completes
|
||||
//
|
||||
inline bool netWriteNotifyIO::factory ( nciu &chan, cacNotify ¬ify, ca_uint32_t &id )
|
||||
{
|
||||
netWriteNotifyIO *pIO = new netWriteNotifyIO ( chan, notify );
|
||||
if ( pIO ) {
|
||||
id = pIO->getId ();
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user