diff --git a/Processor/Processor.hpp b/Processor/Processor.hpp index 747f5118..d2fe438c 100644 --- a/Processor/Processor.hpp +++ b/Processor/Processor.hpp @@ -443,7 +443,7 @@ void Processor::write_shares_to_file(long start_pos, template void SubProcessor::POpen(const Instruction& inst) { - if (inst.get_n()) + if (inst.get_n() or BaseMachine::s().nthreads > 0) check(); auto& reg = inst.get_start(); int size = inst.get_size(); @@ -457,6 +457,8 @@ void SubProcessor::POpen(const Instruction& inst) for (auto it = reg.begin(); it < reg.end(); it += 2) for (int i = 0; i < size; i++) C[*it + i] = MC.finalize_open(); + if (inst.get_n() or BaseMachine::s().nthreads > 0) + check(); if (Proc != 0) {