Skip to content

Commit

Permalink
use try lock instead of lock
Browse files Browse the repository at this point in the history
  • Loading branch information
mamueluth authored Jun 5, 2024
1 parent 12ad220 commit 34ba940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardware_interface/src/resource_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ void ResourceManager::publish_all_interface_values() const
interface_values.states = state_interface_values;
interface_values.commands = command_interface_values;

rt_interface_values_publisher_->lock();
rt_interface_values_publisher_->trylock();
rt_interface_values_publisher_->msg_ = interface_values;
rt_interface_values_publisher_->unlockAndPublish();
}
Expand Down

0 comments on commit 34ba940

Please sign in to comment.