Fix data race in enb::ta class.

master
faluco 3 years ago committed by faluco
parent d2f09a8d3c
commit 457dcf4de4

@ -199,6 +199,7 @@ public:
*/ */
void start() void start()
{ {
std::lock_guard<std::mutex> lock(mutex);
// Transition to idle only if the current state is idle // Transition to idle only if the current state is idle
if (state == state_idle) { if (state == state_idle) {
state = state_measure; state = state_measure;

Loading…
Cancel
Save