[rtems-docs commit] c-user: Add note to rtems_task_set_scheduler()

Sebastian Huber sebh at rtems.org
Wed Mar 8 11:11:53 UTC 2017


Module:    rtems-docs
Branch:    master
Commit:    93e52865e28d062de12d3769d6bc75b5ade3f36c
Changeset: http://git.rtems.org/rtems-docs/commit/?id=93e52865e28d062de12d3769d6bc75b5ade3f36c

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Mar  8 12:11:32 2017 +0100

c-user: Add note to rtems_task_set_scheduler()

---

 c-user/task_manager.rst | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/c-user/task_manager.rst b/c-user/task_manager.rst
index 0ac61b4..511d48b 100644
--- a/c-user/task_manager.rst
+++ b/c-user/task_manager.rst
@@ -1464,7 +1464,9 @@ DESCRIPTION:
     to ``priority``.
 
 NOTES:
-    None.
+    It is recommended to set the scheduler of a task before it is started or in
+    case it is guaranteed that the task owns no resources.  Otherwise, sporadic
+    ``RTEMS_RESOURCE_IN_USE`` errors may occur.
 
 EXAMPLE:
     .. code-block:: c




More information about the vc mailing list