MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mt_send_handle Struct Reference
Inheritance diagram for mt_send_handle:
Collaboration diagram for mt_send_handle:

Public Member Functions

 mt_send_handle (thr_data *ptr)
virtual Uint32 * getWritePtr (NodeId node, Uint32 len, Uint32 prio, Uint32 max)
virtual Uint32 updateWritePtr (NodeId node, Uint32 lenBytes, Uint32 prio)
virtual bool forceSend (NodeId node)

Public Attributes

struct thr_datam_selfptr

Detailed Description

Definition at line 910 of file mt.cpp.

Member Function Documentation

bool mt_send_handle::forceSend ( NodeId  nodeId)
virtual

This is used in case send buffer gets full, to force an emergency send, hopefully freeing up some buffer space for the next signal.

Implements TransporterSendBufferHandle.

Definition at line 2027 of file mt.cpp.

Here is the call graph for this function:

Uint32 * mt_send_handle::getWritePtr ( NodeId  node,
Uint32  lenBytes,
Uint32  prio,
Uint32  max_use 
)
virtual

Get space for packing a signal into, allocate more buffer as needed.

The max_use parameter is a limit on the amount of unsent data (whether delivered through get_bytes_to_send_iovec() or not) for one node; the method must return NULL rather than allow to exceed this amount.

Implements TransporterSendBufferHandle.

Definition at line 2210 of file mt.cpp.

Uint32 mt_send_handle::updateWritePtr ( NodeId  node,
Uint32  lenBytes,
Uint32  prio 
)
virtual

Called when new signal is packed.

Returns number of bytes in buffer not yet sent (this includes data that was made available to send with get_bytes_to_send_iovec(), but has not yet been marked as really sent from bytes_sent()).

Implements TransporterSendBufferHandle.

Definition at line 2238 of file mt.cpp.


The documentation for this struct was generated from the following file: