MCPcopy Create free account
hub / github.com/SoarGroup/Soar / ClearInterrupts

Method ClearInterrupts

Core/KernelSML/src/sml_AgentSML.cpp:429–440  ·  view source on GitHub ↗

============================= Clear any existing interrupt requests (Generally done before starting a run) =============================

Source from the content-addressed store, hash-verified

427// (Generally done before starting a run)
428//=============================
429void AgentSML::ClearInterrupts()
430{
431 // Clear the interrupts whether running or not
432 m_interruptFlags = 0;
433
434 // Only change state of agent if it is running
435 if (m_runState == sml_RUNSTATE_INTERRUPTED)
436 {
437 // We returned, and thus are stopped
438 m_runState = sml_RUNSTATE_STOPPED;
439 }
440}
441
442smlRunResult AgentSML::StepInClientThread(smlRunStepSize stepSize)
443{

Callers 1

ClearAllInterruptsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected