moved inline def
This commit is contained in:
@@ -63,33 +63,6 @@
|
||||
|
||||
tsFreeList < class comBuf, 0x20 > comBuf::freeList;
|
||||
|
||||
inline bufferReservoir::~bufferReservoir ()
|
||||
{
|
||||
this->drain ();
|
||||
}
|
||||
|
||||
inline comBuf *bufferReservoir::fetchOneBuffer ()
|
||||
{
|
||||
return this->reservedBufs.get ();
|
||||
}
|
||||
|
||||
inline bool bufferReservoir::addOneBuffer ()
|
||||
{
|
||||
comBuf *pBuf = new comBuf;
|
||||
if ( pBuf ) {
|
||||
this->reservedBufs.add ( *pBuf );
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
inline unsigned bufferReservoir::nBytes ()
|
||||
{
|
||||
return ( this->reservedBufs.count () * comBuf::maxBytes () );
|
||||
}
|
||||
|
||||
comQueSend::comQueSend ( wireSendAdapter & wireIn ) :
|
||||
wire ( wireIn ), nBytesPending ( 0u )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user