thread_name_updating_nodelet.hpp
Go to the documentation of this file.
1 #pragma once
2 
11 #include <nodelet/nodelet.h>
12 
13 namespace cras
14 {
15 
20 template<typename NodeletType = ::nodelet::Nodelet>
21 class ThreadNameUpdatingNodelet : public virtual NodeletType
22 {
23 public:
24  ~ThreadNameUpdatingNodelet() override;
25 
26 protected:
36  void updateThreadName() const;
37 };
38 
39 }
40 
41 #include "impl/thread_name_updating_nodelet.hpp"
cras
Definition: any.hpp:15
cras::ThreadNameUpdatingNodelet::updateThreadName
void updateThreadName() const
Set custom name of the current thread to this nodelet's name.
cras::ThreadNameUpdatingNodelet
This mixin allows the nodelet to update the OS name of the thread in which it is currently executing.
Definition: thread_name_updating_nodelet.hpp:21
nodelet.h
cras::ThreadNameUpdatingNodelet::~ThreadNameUpdatingNodelet
~ThreadNameUpdatingNodelet() override


cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sun Jan 14 2024 03:48:14