This commit is contained in:
Nav
2022-04-17 23:56:57 +01:00
parent 13f5c13065
commit 0a21526a68
7 changed files with 16 additions and 8 deletions

View File

@@ -942,7 +942,7 @@ namespace Bloom::TargetController
* Insight has just started up.
*
* Refresh the target state and kick off a target stop/resume execution event. Setting the lastTargetState
* to UNKNOWN will be enough to do this. See TargetController::fireTargetEvents().
* to UNKNOWN will be enough to do this. See TargetControllerComponent::fireTargetEvents().
*/
this->lastTargetState = TargetState::UNKNOWN;
}

View File

@@ -75,8 +75,10 @@ namespace Bloom::TargetController
static inline ConditionVariableNotifier notifier = ConditionVariableNotifier();
static inline std::condition_variable responsesByCommandIdCv = std::condition_variable();
/**
* The TC starts off in a suspended state. TargetController::resume() is invoked from the startup routine.
* The TC starts off in a suspended state. TargetControllerComponent::resume() is invoked from the startup
* routine.
*/
TargetControllerState state = TargetControllerState::SUSPENDED;

View File

@@ -10,7 +10,8 @@ namespace Bloom::TargetController
using namespace Bloom::Exceptions;
TargetControllerConsole::TargetControllerConsole(EventListener& eventListener)
:eventListener(eventListener) {}
: eventListener(eventListener)
{}
TargetControllerState TargetControllerConsole::getTargetControllerState() {
return this->triggerTargetControllerEventAndWaitForResponse(