#include <P_ClusterHandler.h>
Inherits Continuation.
Inherited by IncomingControl, and OutgoingControl.
Public Types | |
enum | { DATA_HDR = (sizeof(int64_t) * 2) } |
Public Member Functions | |
IOBufferBlock * | get_block () |
bool | fast_data () |
bool | valid_alloc_data () |
ClusterControl () | |
void | real_alloc_data (int, bool) |
void | free_data () |
virtual void | freeall ()=0 |
Data Fields | |
int | len |
char | size_index |
int64_t * | real_data |
char * | data |
void(* | free_proc )(void *) |
void * | free_proc_arg |
Ptr< IOBufferBlock > | iob_block |
Definition at line 48 of file P_ClusterHandler.h.
anonymous enum |
Definition at line 71 of file P_ClusterHandler.h.
ClusterControl::ClusterControl | ( | ) |
Definition at line 67 of file ClusterHandlerBase.cc.
bool ClusterControl::fast_data | ( | ) | [inline] |
Definition at line 62 of file P_ClusterHandler.h.
References len, and MAX_FAST_CONTROL_MESSAGE.
Referenced by ClusterHandler::build_initial_vector(), and ClusterProcessor::internal_invoke_remote().
void ClusterControl::free_data | ( | ) |
Definition at line 131 of file ClusterHandlerBase.cc.
References ALLOC_DATA_MAGIC, data, DATA_HDR, free_proc, free_proc_arg, ink_release_assert, iob_block, real_data, and size_index.
Referenced by ClusterHandler::build_controlmsg_descriptors(), OutgoingControl::freeall(), IncomingControl::freeall(), and ClusterHandler::update_channels_written().
virtual void ClusterControl::freeall | ( | ) | [pure virtual] |
Implemented in OutgoingControl, and IncomingControl.
IOBufferBlock* ClusterControl::get_block | ( | ) | [inline] |
Definition at line 58 of file P_ClusterHandler.h.
References iob_block.
Referenced by ClusterHandler::build_controlmsg_descriptors(), ClusterHandler::build_initial_vector(), and set_channel_data_ClusterFunction().
void ClusterControl::real_alloc_data | ( | int | read_access, | |
bool | align_int32_on_non_int64_boundary | |||
) |
Definition at line 73 of file ClusterHandlerBase.cc.
References ALLOC_DATA_MAGIC, BUFFER_SIZE_FOR_XMALLOC, buffer_size_to_index(), CLUSTER_ALLOC_DATA_NEWS_STAT, CLUSTER_INCREMENT_DYN_STAT, data, DATA_HDR, DEFAULT_MAX_BUFFER_SIZE, DOUBLE_ALIGN, ink_assert, iob_block, len, MAX_BUFFER_SIZE_INDEX, memcpy, Thread::mutex, Continuation::mutex, new_IOBufferBlock, real_data, size_index, this_ethread(), and val.
Referenced by IncomingControl::alloc_data(), and OutgoingControl::alloc_data().
bool ClusterControl::valid_alloc_data | ( | ) | [inline] |
Definition at line 66 of file P_ClusterHandler.h.
char* ClusterControl::data |
Definition at line 53 of file P_ClusterHandler.h.
Referenced by ClusterHandler::build_controlmsg_descriptors(), ClusterHandler::build_initial_vector(), free_data(), ClusterProcessor::internal_invoke_remote(), ClusterProcessor::invoke_remote_data(), ClusterHandler::process_incoming_callouts(), ClusterHandler::process_large_control_msgs(), ClusterHandler::process_set_data_msgs(), ClusterHandler::process_small_control_msgs(), real_alloc_data(), set_channel_data_ClusterFunction(), OutgoingControl::set_data(), OutgoingControl::startEvent(), TSAllocClusterRPCMsg(), ClusterHandler::update_channels_written(), and valid_alloc_data().
void(* ClusterControl::free_proc)(void *) |
Definition at line 54 of file P_ClusterHandler.h.
Referenced by free_data(), and OutgoingControl::set_data().
Definition at line 55 of file P_ClusterHandler.h.
Referenced by free_data(), and OutgoingControl::set_data().
Definition at line 56 of file P_ClusterHandler.h.
Referenced by free_data(), get_block(), real_alloc_data(), OutgoingControl::set_data(), and valid_alloc_data().
Definition at line 50 of file P_ClusterHandler.h.
Referenced by ClusterHandler::build_controlmsg_descriptors(), ClusterHandler::build_initial_vector(), fast_data(), ClusterProcessor::internal_invoke_remote(), ClusterProcessor::invoke_remote_data(), ClusterHandler::process_incoming_callouts(), ClusterHandler::process_large_control_msgs(), ClusterHandler::process_set_data_msgs(), ClusterHandler::process_small_control_msgs(), real_alloc_data(), set_channel_data_ClusterFunction(), OutgoingControl::set_data(), and TSAllocClusterRPCMsg().
int64_t* ClusterControl::real_data |
Definition at line 52 of file P_ClusterHandler.h.
Referenced by free_data(), real_alloc_data(), OutgoingControl::set_data(), and valid_alloc_data().
Definition at line 51 of file P_ClusterHandler.h.
Referenced by free_data(), and real_alloc_data().