Skip to content

Commit

Permalink
Update include/realtime_tools/lock_free_queue.hpp
Browse files Browse the repository at this point in the history
Co-authored-by: Erick G. Islas-Osuna <[email protected]>
  • Loading branch information
saikishor and erickisos authored Jan 3, 2025
1 parent 71321b3 commit 4f61624
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions include/realtime_tools/lock_free_queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,7 @@ class LockFreeQueueBase
*/
bool is_lock_free() const
{
if constexpr (is_spsc_queue<LockFreeContainer>::value) {
return true;
} else {
return data_queue_.is_lock_free();
}
return (is_spsc_queue<LockFreeContainer>::value) || data_queue_.is_lock_free();
}

/**
Expand Down

0 comments on commit 4f61624

Please sign in to comment.