diff options
author | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-07-11 12:02:36 +0000 |
---|---|---|
committer | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-07-11 12:02:36 +0000 |
commit | 07fa57ee9681bc4d7051ff06d58aa2f65340037d (patch) | |
tree | f0af7b2ff16e1acf0b550bc0dcb3a0adcc733f30 /ace/Message_Block.cpp | |
parent | 5f1d43838d65d1a8d82e1d247a2eade28a6b0308 (diff) | |
download | ATCD-07fa57ee9681bc4d7051ff06d58aa2f65340037d.tar.gz |
ChangeLogTag: Tue Jul 11 12:01:12 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'ace/Message_Block.cpp')
-rw-r--r-- | ace/Message_Block.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ace/Message_Block.cpp b/ace/Message_Block.cpp index 36f34637eb0..be94df6ddeb 100644 --- a/ace/Message_Block.cpp +++ b/ace/Message_Block.cpp @@ -1092,7 +1092,8 @@ ACE_Data_Block::clone (ACE_Message_Block::Message_Flags mask) const } ACE_Data_Block * -ACE_Data_Block::clone_nocopy (ACE_Message_Block::Message_Flags mask) const +ACE_Data_Block::clone_nocopy (ACE_Message_Block::Message_Flags mask, + size_t max_size) const { ACE_FUNCTION_TIMEPROBE(ACE_DATA_BLOCK_CLONE_ENTER); @@ -1108,7 +1109,8 @@ ACE_Data_Block::clone_nocopy (ACE_Message_Block::Message_Flags mask) const ACE_NEW_MALLOC_RETURN (nb, static_cast<ACE_Data_Block*> ( this->data_block_allocator_->malloc (sizeof (ACE_Data_Block))), - ACE_Data_Block (this->max_size_, // size + ACE_Data_Block (max_size == 0 ? + this->max_size_ : max_size, // size this->type_, // type 0, // data this->allocator_strategy_, // allocator |