From 0752556bde5659a933744658cdf63509000a5080 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 6 Dec 2016 11:03:35 -0500 Subject: Fix some real-time safety issues --- src/server/PreProcessor.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/server/PreProcessor.cpp') diff --git a/src/server/PreProcessor.cpp b/src/server/PreProcessor.cpp index c23c99d6..07c51fee 100644 --- a/src/server/PreProcessor.cpp +++ b/src/server/PreProcessor.cpp @@ -129,12 +129,14 @@ PreProcessor::process(RunContext& context, PostProcessor& dest, size_t limit) if (n_processed > 0) { Engine& engine = context.engine(); +#ifndef NDEBUG if (engine.world()->conf().option("trace").get()) { const uint64_t start = engine.cycle_start_time(context); const uint64_t end = engine.current_time(context); fprintf(stderr, "Processed %zu events in %u us\n", n_processed, (unsigned)(end - start)); } +#endif Event* next = (Event*)last->next(); last->next(NULL); -- cgit v1.2.1