Skip to content

Commit

Permalink
Removed locks in AddMultiCastGroup/RemMultiCastGroup method to preven…
Browse files Browse the repository at this point in the history
…t blocking when function becomes called.
  • Loading branch information
hannemn committed Jun 3, 2024
1 parent 6f85a3a commit d0801e7
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 d0801e7

Please sign in to comment.