Used std::atomic for ThreadState
This commit is contained in:
@@ -189,7 +189,7 @@ namespace Bloom::TargetController
|
||||
* @param emitEvent
|
||||
*/
|
||||
void setThreadStateAndEmitEvent(ThreadState state) {
|
||||
this->setThreadState(state);
|
||||
this->threadState = state;
|
||||
EventManager::triggerEvent(
|
||||
std::make_shared<Events::TargetControllerThreadStateChanged>(state)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user