Skip to content

Commit

Permalink
CMemfileRegistrationReceiver destructor added to stop internal broadc…
Browse files Browse the repository at this point in the history
…ast reader thread
  • Loading branch information
rex-schilasky committed Jan 12, 2024
1 parent 6681bea commit 77ca7be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ecal/core/src/registration/ecal_registration_receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ namespace eCAL
// CMemfileRegistrationReceiver
//////////////////////////////////////////////////////////////////

CMemfileRegistrationReceiver::~CMemfileRegistrationReceiver()
{
Destroy();
}

void CMemfileRegistrationReceiver::Create(eCAL::CMemoryFileBroadcastReader* memfile_broadcast_reader_)
{
if (m_created) return;
Expand Down
2 changes: 2 additions & 0 deletions ecal/core/src/registration/ecal_registration_receiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ namespace eCAL
class CMemfileRegistrationReceiver
{
public:
~CMemfileRegistrationReceiver();

void Create(CMemoryFileBroadcastReader* memfile_broadcast_reader_);
void Destroy();

Expand Down

0 comments on commit 77ca7be

Please sign in to comment.