Skip to content

Commit

Permalink
Add get_thread method to RealtimePublisher (#228)
Browse files Browse the repository at this point in the history
---------

Signed-off-by: Patrick Roncagliolo <[email protected]>
Co-authored-by: Sai Kishor Kothakota <[email protected]>
Co-authored-by: Christoph Fröhlich <[email protected]>
  • Loading branch information
3 people authored Dec 16, 2024
1 parent 78f0372 commit 70d93ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/realtime_tools/realtime_publisher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ class RealtimePublisher
#endif
}

std::thread & get_thread() { return thread_; }

const std::thread & get_thread() const { return thread_; }

private:
// non-copyable
RealtimePublisher(const RealtimePublisher &) = delete;
Expand Down

0 comments on commit 70d93ba

Please sign in to comment.