Skip to content

Commit

Permalink
WIP throw exception
Browse files Browse the repository at this point in the history
Signed-off-by: Shamser Ahmed <[email protected]>
  • Loading branch information
shamser committed Oct 17, 2024
1 parent 4327375 commit c995fbb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions thorlcr/graph/thgraphslave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c995fbb

Please sign in to comment.