Skip to content

Commit 70d93ba

Browse files
roncapatsaikishorchristophfroehlich
authored
Add get_thread method to RealtimePublisher (#228)
--------- Signed-off-by: Patrick Roncagliolo <[email protected]> Co-authored-by: Sai Kishor Kothakota <[email protected]> Co-authored-by: Christoph Fröhlich <[email protected]>
1 parent 78f0372 commit 70d93ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/realtime_tools/realtime_publisher.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ class RealtimePublisher
182182
#endif
183183
}
184184

185+
std::thread & get_thread() { return thread_; }
186+
187+
const std::thread & get_thread() const { return thread_; }
188+
185189
private:
186190
// non-copyable
187191
RealtimePublisher(const RealtimePublisher &) = delete;

0 commit comments

Comments
 (0)