c-user: Add note to rtems_task_set_scheduler()

This commit is contained in:
Sebastian Huber 2017-03-08 12:11:32 +01:00
parent 9260c986ce
commit 93e52865e2

View File

@ -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