summaryrefslogtreecommitdiffstats
path: root/raul/Thread.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'raul/Thread.hpp')
-rw-r--r--raul/Thread.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/raul/Thread.hpp b/raul/Thread.hpp
index e444c6e..29cade1 100644
--- a/raul/Thread.hpp
+++ b/raul/Thread.hpp
@@ -56,11 +56,11 @@ public:
void set_scheduling(int policy, unsigned int priority);
- const std::string& name() { return _name; }
+ const std::string& name() const { return _name; }
void set_name(const std::string& name) { _name = name; }
- const unsigned context() { return _context; }
- void set_context(unsigned context) { _context = context; }
+ unsigned context() const { return _context; }
+ void set_context(unsigned context) { _context = context; }
protected:
Thread(const std::string& name="");