Skip to content

Commit

Permalink
[core] Removed locks in AddMultiCastGroup()/RemMultiCastGroup() metho…
Browse files Browse the repository at this point in the history
…d to prevent blocking when Receive() is called in parallel. (#1622)
  • Loading branch information
hannemn authored Jun 3, 2024
1 parent 6f85a3a commit 3345518
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ecal/core/src/io/udp/sendreceive/udp_receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,13 @@ namespace IO
{
if (!m_socket_impl) return(false);

const std::lock_guard<std::mutex> lock(m_socket_mtx);
return(m_socket_impl->AddMultiCastGroup(ipaddr_));
}

bool CUDPReceiver::RemMultiCastGroup(const char* ipaddr_)
{
if (!m_socket_impl) return(false);

const std::lock_guard<std::mutex> lock(m_socket_mtx);
return(m_socket_impl->RemMultiCastGroup(ipaddr_));
}

Expand Down

0 comments on commit 3345518

Please sign in to comment.