summaryrefslogtreecommitdiffstats
path: root/raul
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-14 06:18:58 +0000
committerDavid Robillard <d@drobilla.net>2012-05-14 06:18:58 +0000
commite8e347d61552be45d5db505a47b5ceec99149ca0 (patch)
tree55c7a956e9b61184e21fb29f207dc0d1f21b00cb /raul
parent17cc5056bbd4c5e79ee16894f94892d5a11d521c (diff)
downloadraul-e8e347d61552be45d5db505a47b5ceec99149ca0.tar.gz
raul-e8e347d61552be45d5db505a47b5ceec99149ca0.tar.bz2
raul-e8e347d61552be45d5db505a47b5ceec99149ca0.zip
Fully test Thread::set_scheduling().
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4414 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul')
-rw-r--r--raul/Thread.hpp6
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; }