-
Notifications
You must be signed in to change notification settings - Fork 793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTPSMessageGroup_t preallocation <1.9.x> [7165] #938
RTPSMessageGroup_t preallocation <1.9.x> [7165] #938
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry for commenting after the merge but 764718d breaks compilation when security is disabled. The dtor of dtor of declaration of |
This is a port of #938 and #979 and 3778a97 from 1.9.X * Refs #7116. Separating RTPSMessageGroup_t into a private header. * Refs #7116. Passing send buffers management responsibility to RTPSParticipantImpl. * Refs #7116. RAII on RTPSMessageGroup_t. * Refs #7116. Protecting access to buffer pool. * Refs #7116. Preallocating one buffer per expected thread. * Refs #7116. Protecting access to buffer pool with specific mutex. * Refs #7116. New SendBuffersManager class. * Refs #7116. Allowing wrapping buffer on RTPSMessageGroup_t. * Refs #7116. Using a single allocation for all initially allocated buffers. * Refs #7116. Adding assertion. * Refs #7116. Fixed alignment. * Refs #7116. Correct calculation of raw buffer size. * Refs #7116. Early return on security initialization failure. * Refs #7116. Making send buffers allocation configurable. * Refs #7116. Adding XML configuration for send_buffers allocation. * Refs #7116. Adding participant allocation attributes to XML parser unit test. * Refs #7165. Fixed warnings. * Refs #7165. Fixed leak. * Refs #7165. Return send buffer even if an exception is thrown. * Refs #7165. Correctly return send buffer. * Fixed build without security.
* Refs #7166 RTPSMessageGroup_t preallocation This is a port of #938 and #979 and 3778a97 from 1.9.X * Refs #7116. Separating RTPSMessageGroup_t into a private header. * Refs #7116. Passing send buffers management responsibility to RTPSParticipantImpl. * Refs #7116. RAII on RTPSMessageGroup_t. * Refs #7116. Protecting access to buffer pool. * Refs #7116. Preallocating one buffer per expected thread. * Refs #7116. Protecting access to buffer pool with specific mutex. * Refs #7116. New SendBuffersManager class. * Refs #7116. Allowing wrapping buffer on RTPSMessageGroup_t. * Refs #7116. Using a single allocation for all initially allocated buffers. * Refs #7116. Adding assertion. * Refs #7116. Fixed alignment. * Refs #7116. Correct calculation of raw buffer size. * Refs #7116. Early return on security initialization failure. * Refs #7116. Making send buffers allocation configurable. * Refs #7116. Adding XML configuration for send_buffers allocation. * Refs #7116. Adding participant allocation attributes to XML parser unit test. * Refs #7165. Fixed warnings. * Refs #7165. Fixed leak. * Refs #7165. Return send buffer even if an exception is thrown. * Refs #7165. Correctly return send buffer. * Fixed build without security. * Refs #7166. Apply suggestions from code review Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
This PR:
SendBuffersManager
class, responsible of RTPSMessageGroup_t allocationsend_buffers
field toRTPSParticipantAllocationAttributes
with the allocation options for the pool ofRTPSMessageGroup_t
instances