Skip to content

Commit

Permalink
add missing resources_lock_ on rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Jun 25, 2024
1 parent 65ffd19 commit a4660e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hardware_interface/src/resource_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::recursive_mutex> resource_guard(resources_lock_);
for (const auto & individual_hardware_info : hardware_info)
{
// Check for identical names
Expand Down

0 comments on commit a4660e1

Please sign in to comment.