Extends mutex to TM stages
This commit is contained in:
parent
b6de4cde11
commit
5170ca5880
|
@ -175,7 +175,6 @@ void TrafficManagerLocal::Run() {
|
|||
|
||||
registered_vehicles_state = registered_vehicles.GetState();
|
||||
}
|
||||
registration_lock.unlock();
|
||||
|
||||
// Reset frames for current cycle.
|
||||
localization_frame.clear();
|
||||
|
@ -201,6 +200,8 @@ void TrafficManagerLocal::Run() {
|
|||
motion_plan_stage.Update(index);
|
||||
}
|
||||
|
||||
registration_lock.unlock();
|
||||
|
||||
// Sending the current cycle's batch command to the simulator.
|
||||
if (synchronous_mode) {
|
||||
episode_proxy.Lock()->ApplyBatchSync(control_frame, false);
|
||||
|
|
Loading…
Reference in New Issue