Skip to content

Commit

Permalink
Merge pull request OpenDDS#4807 from mitza-oci/send-buffer-mutex
Browse files Browse the repository at this point in the history
SingleSendBuffer::pre_clear() needs the lock
  • Loading branch information
jrw972 authored Sep 30, 2024
2 parents 69ae5b3 + 432a1aa commit e132510
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dds/DCPS/transport/framework/TransportSendBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ class OpenDDS_Dcps_Export SingleSendBuffer

void pre_clear()
{
ACE_GUARD(ACE_Thread_Mutex, g, mutex_);
pre_seq_.clear();
}

Expand Down
3 changes: 2 additions & 1 deletion dds/DCPS/transport/rtps_udp/RtpsUdpDataLink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -842,9 +842,10 @@ RtpsUdpDataLink::RtpsWriter::pre_stop_helper(TqeVector& to_drop, bool true_stop)
}
}

g2.release();

send_buff_->pre_clear();

g2.release();
g.release();

if (stopping_) {
Expand Down

0 comments on commit e132510

Please sign in to comment.