From c995fbb980881856b812b11645822040e3ec684d Mon Sep 17 00:00:00 2001 From: Shamser Ahmed Date: Thu, 17 Oct 2024 09:01:51 +0100 Subject: [PATCH] WIP throw exception Signed-off-by: Shamser Ahmed --- thorlcr/graph/thgraphslave.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/thorlcr/graph/thgraphslave.cpp b/thorlcr/graph/thgraphslave.cpp index 07194a9cd93..271e938004a 100644 --- a/thorlcr/graph/thgraphslave.cpp +++ b/thorlcr/graph/thgraphslave.cpp @@ -589,8 +589,9 @@ unsigned __int64 CSlaveActivity::queryLocalCycles() const unsigned __int64 processCycles = queryTotalCycles() + queryLookAheadCycles(); if (processCycles < inputCycles) // not sure how/if possible, but guard against { - ActPrintLog("CSlaveActivity::queryLocalCycles - process %" I64F "uns < input %" I64F "uns", cycle_to_nanosec(processCycles), cycle_to_nanosec(inputCycles)); - return 0; + throw makeStringExceptionV(-1, "CSlaveActivity::queryLocalCycles a%u- process %" I64F "uns < input %" I64F "uns", queryActivityId(), cycle_to_nanosec(processCycles), cycle_to_nanosec(inputCycles)); + // ActPrintLog("CSlaveActivity::queryLocalCycles - process %" I64F "uns < input %" I64F "uns", cycle_to_nanosec(processCycles), cycle_to_nanosec(inputCycles)); + // return 0; } processCycles -= inputCycles; const unsigned __int64 blockedCycles = queryBlockedCycles();