Skip to content

Commit 8364954

Browse files
committed
enable debuging of MS Messages in debug builds
1 parent 58c919a commit 8364954

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/OpenCOVER/cover/coVRMSController.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,10 @@ void coVRMSController::heartBeat(const std::string &name, bool draw)
637637
if (localCounter != masterCount)
638638
{
639639
std::cerr << "coVRMSController: missed heart beat \"" << name << "\", master is " << masterCount << ", on " << getID() << " is " << localCounter << std::endl;
640-
exit(0);
640+
while(true)
641+
{
642+
sleep(1000);
643+
}
641644
}
642645
}
643646
}
@@ -698,6 +701,7 @@ void coVRMSController::sendSlaves(const Message *msg)
698701

699702
if (syncMode == SYNC_MULTICAST)
700703
{
704+
701705
#if !defined(NOMCAST) && defined(HAVE_NORM)
702706

703707
// Prepare header

src/OpenCOVER/cover/coVRMSController.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ typedef void pthread_barrier_t;
3434
#include <vector>
3535
#include <util/coTypes.h>
3636

37-
//#define DEBUG_MESSAGES
37+
#ifndef NDEBUG
38+
#define DEBUG_MESSAGES
39+
#endif
3840
#ifdef DEBUG_MESSAGES
3941
#define CLUSTER_MARK() \
4042
; \

0 commit comments

Comments
 (0)