From a4660e1d6131d6e72e1a0622dcc0a05e8ecc5e03 Mon Sep 17 00:00:00 2001 From: Sai Kishor Kothakota Date: Tue, 25 Jun 2024 13:21:16 +0200 Subject: [PATCH] add missing resources_lock_ on rebase --- hardware_interface/src/resource_manager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/hardware_interface/src/resource_manager.cpp b/hardware_interface/src/resource_manager.cpp index f36d9d00e0..207fbf102d 100644 --- a/hardware_interface/src/resource_manager.cpp +++ b/hardware_interface/src/resource_manager.cpp @@ -1012,6 +1012,7 @@ bool ResourceManager::load_and_initialize_components( const std::string sensor_type = "sensor"; const std::string actuator_type = "actuator"; + std::lock_guard resource_guard(resources_lock_); for (const auto & individual_hardware_info : hardware_info) { // Check for identical names