Module: xenomai-forge
Branch: next
Commit: 122492cd9589e90dfc8bb4c146af57d03c7e4be4
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=122492cd9589e90dfc8bb4c146af57d03c7e4be4

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed May  7 12:44:43 2014 +0200

alchemy/task: require local task for rt_task_slice()

This follows the restriction imposed on the target scope for calling
threadobj_set_rr().

---

 doc/asciidoc/MIGRATION.adoc |    3 ++-
 lib/alchemy/task.c          |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/doc/asciidoc/MIGRATION.adoc b/doc/asciidoc/MIGRATION.adoc
index fc2f88b..ea44796 100644
--- a/doc/asciidoc/MIGRATION.adoc
+++ b/doc/asciidoc/MIGRATION.adoc
@@ -748,7 +748,8 @@ Instead, the application decides about the server priority 
instead of
 the real-time core applying implicit dynamic boosts.
 
 - +rt_task_slice()+ now returns -EINVAL if the caller currently holds
-  the scheduler lock.
+  the scheduler lock, or attempts to change the round-robin settings
+  of a thread which does not belong to the current process.
 
 - T_CPU disappears from the +rt_task_create()+ mode flags. The new
   +rt_task_set_affinity()+ service is available for setting the CPU
diff --git a/lib/alchemy/task.c b/lib/alchemy/task.c
index e8bc542..b47b02a 100644
--- a/lib/alchemy/task.c
+++ b/lib/alchemy/task.c
@@ -1309,7 +1309,8 @@ out:
  * round-robin scheduling for an Alchemy task.
  *
  * @param task The descriptor address of the task to update. If @a
- * task is NULL, the time credit of the current task is changed.
+ * task is NULL, the time credit of the current task is changed. @a
+ * task must belong to the current process.
  *
  * @param quantum The round-robin quantum for the task expressed in
  * clock ticks (see note).


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to