From e8e347d61552be45d5db505a47b5ceec99149ca0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 14 May 2012 06:18:58 +0000 Subject: Fully test Thread::set_scheduling(). git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4414 a436a847-0d15-0410-975c-d299462d15a1 --- raul/Thread.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'raul') 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; } -- cgit v1.2.1