Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Fröhlich <[email protected]>
  • Loading branch information
saikishor and christophfroehlich authored Jan 2, 2025
1 parent 356d87e commit ac7ae53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions include/realtime_tools/lock_free_queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ class LockFreeQueueBase
[[nodiscard]] std::enable_if_t<std::is_convertible_v<T, U>, bool> bounded_push(const U & data)
{
if (!data_queue_.push(data)) {
// data_queue_.pop();
// return data_queue_.push(data);
T dummy;
data_queue_.pop(dummy);
return data_queue_.push(data);
Expand Down Expand Up @@ -237,8 +235,6 @@ class LockFreeQueueBase
[[nodiscard]] std::enable_if_t<std::is_convertible_v<T, U>, bool> bounded_push(const U & data)
{
if (!data_queue_.bounded_push(data)) {
// data_queue_.pop();
// return data_queue_.push(data);
T dummy;
data_queue_.pop(dummy);
return data_queue_.bounded_push(data);
Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<buildtool_export_depend>ament_cmake</buildtool_export_depend>

<build_depend>libboost-dev</build_depend>
<depend>libboost-dev</depend>
<depend>rclcpp</depend>
<depend>rclcpp_action</depend>
<depend>libcap-dev</depend>
Expand Down

0 comments on commit ac7ae53

Please sign in to comment.