diff options
Diffstat (limited to 'raul/Thread.hpp')
-rw-r--r-- | raul/Thread.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/raul/Thread.hpp b/raul/Thread.hpp index 0d6c094..0eb3a9e 100644 --- a/raul/Thread.hpp +++ b/raul/Thread.hpp @@ -55,8 +55,10 @@ public: /** Wait until the thread exits. */ virtual void join(); - /** Set the scheduling policy for this thread. */ - virtual void set_scheduling(bool realtime, unsigned priority); + /** Set the scheduling policy for this thread. + * @return True on success. + */ + virtual bool set_scheduling(bool realtime, unsigned priority); /** Return the name of this thread. */ const std::string& name() const { return _name; } |