#include "ace/Message_Block.h"
#include "ace/Guard_T.h"
#include "ace/Log_Msg.h"
#include "ace/Malloc_Base.h"
#include "ace/OS_NS_string.h"
#include "ace/Timeprobe.h"
Go to the source code of this file.
Defines | |
#define | ACE_EXECUTION_TIME ACE_Time_Value::zero |
#define | ACE_DEADLINE_TIME ACE_Time_Value::max_time |
Functions | |
ACE_RCSID (ace, Message_Block,"$Id: Message_Block.cpp 84527 2009-02-19 14:01:42Z johnnyw $") 1void ACE_Message_Block |
#define ACE_DEADLINE_TIME ACE_Time_Value::max_time |
Definition at line 1014 of file Message_Block.cpp.
#define ACE_EXECUTION_TIME ACE_Time_Value::zero |
Definition at line 1013 of file Message_Block.cpp.
ACE_RCSID | ( | ace | , | |
Message_Block | , | |||
"$Id: Message_Block.cpp 84527 2009-02-19 14:01:42Z johnnyw $" | ||||
) |
Definition at line 15 of file Message_Block.cpp.
: Message_Block.cpp 84527 2009-02-19 14:01:42Z johnnyw $") ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_ALLOC_HOOK_DEFINE (ACE_Message_Block) #if defined (ACE_ENABLE_TIMEPROBES) static const char *ACE_MB_Timeprobe_Description[] = { "Message_Block::init_i - enter", "Message_Block::init_i - leave", "Message_Block::init_i - db alloc", "Message_Block::init_i - db ctor", "Data_Block::ctor[1] - enter", "Data_Block::ctor[1] - leave", "Data_Block::ctor[2] - enter", "Data_Block::ctor[2] - leave", "Data_Block::clone - enter", "Data_Block::clone - leave" }; enum { ACE_MESSAGE_BLOCK_INIT_I_ENTER = 3000, ACE_MESSAGE_BLOCK_INIT_I_LEAVE, ACE_MESSAGE_BLOCK_INIT_I_DB_ALLOC, ACE_MESSAGE_BLOCK_INIT_I_DB_CTOR, ACE_DATA_BLOCK_CTOR1_ENTER, ACE_DATA_BLOCK_CTOR1_LEAVE, ACE_DATA_BLOCK_CTOR2_ENTER, ACE_DATA_BLOCK_CTOR2_LEAVE, ACE_DATA_BLOCK_CLONE_ENTER, ACE_DATA_BLOCK_CLONE_LEAVE }; // Setup Timeprobes ACE_TIMEPROBE_EVENT_DESCRIPTIONS (ACE_MB_Timeprobe_Description, ACE_MESSAGE_BLOCK_INIT_I_ENTER); #endif /* ACE_ENABLE_TIMEPROBES */ void ACE_Message_Block::data_block (ACE_Data_Block *db) { ACE_TRACE ("ACE_Message_Block::data_block"); if (ACE_BIT_DISABLED (this->flags_, ACE_Message_Block::DONT_DELETE) && this->data_block_ != 0) this->data_block_->release (); this->data_block_ = db; // Set the read and write pointers in the <Message_Block> to point // to the buffer in the <ACE_Data_Block>. this->rd_ptr (this->data_block ()->base ()); this->wr_ptr (this->data_block ()->base ()); }