We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ced164e commit ad7b18cCopy full SHA for ad7b18c
core/tw-event.c
@@ -24,7 +24,9 @@ void tw_event_send(tw_event * event) {
24
//Trap lookahead violations in debug mode
25
//Note that compiling with the -DNDEBUG flag will turn this off!
26
if (g_tw_synchronization_protocol == CONSERVATIVE) {
27
- assert(recv_ts - tw_now(src_lp) >= g_tw_lookahead && "Lookahead violation: try decreasing the lookahead value");
+ if (recv_ts - tw_now(src_lp) >= g_tw_lookahead) {
28
+ tw_error(TW_LOC, "Lookahead violation: decrease g_tw_lookahead");
29
+ }
30
}
31
32
if (event->out_msgs) {
0 commit comments