mirror of
https://git.rtems.org/rtems-docs/
synced 2025-05-15 19:37:11 +08:00
c-user: Use document internal links
This commit is contained in:
parent
e77e04d2dc
commit
162925edd0
@ -87,8 +87,9 @@ scheduling algorithm. The length of time allocated to each task is known as
|
|||||||
the quantum or timeslice.
|
the quantum or timeslice.
|
||||||
|
|
||||||
The system's timeslice is defined as an integral number of ticks, and is
|
The system's timeslice is defined as an integral number of ticks, and is
|
||||||
specified in the Configuration Table. The timeslice is defined for the entire
|
specified by the :ref:`CONFIGURE_TICKS_PER_TIMESLICE` application configuration
|
||||||
system of tasks, but timeslicing is enabled and disabled on a per task basis.
|
option. The timeslice is defined for the entire system of tasks, but
|
||||||
|
timeslicing is enabled and disabled on a per task basis.
|
||||||
|
|
||||||
The clock tick directives implement timeslicing by decrementing the
|
The clock tick directives implement timeslicing by decrementing the
|
||||||
running task's time-remaining counter when both timeslicing and preemption are
|
running task's time-remaining counter when both timeslicing and preemption are
|
||||||
@ -102,10 +103,10 @@ Delays
|
|||||||
|
|
||||||
A sleep timer allows a task to delay for a given interval or up until a given
|
A sleep timer allows a task to delay for a given interval or up until a given
|
||||||
time, and then wake and continue execution. This type of timer is created
|
time, and then wake and continue execution. This type of timer is created
|
||||||
automatically by the ``rtems_task_wake_after`` and ``rtems_task_wake_when``
|
automatically by the :ref:`InterfaceRtemsTaskWakeAfter` and
|
||||||
directives and, as a result, does not have an RTEMS ID. Once activated, a
|
:ref:`InterfaceRtemsTaskWakeWhen` directives and, as a result, does not have an
|
||||||
sleep timer cannot be explicitly deleted. Each task may activate one and only
|
object identifier. Once activated, a sleep timer cannot be explicitly deleted.
|
||||||
one sleep timer at a time.
|
Each task may activate one and only one sleep timer at a time.
|
||||||
|
|
||||||
.. index:: timeouts
|
.. index:: timeouts
|
||||||
|
|
||||||
@ -113,7 +114,8 @@ Timeouts
|
|||||||
--------
|
--------
|
||||||
|
|
||||||
Timeouts are a special type of timer automatically created when the timeout
|
Timeouts are a special type of timer automatically created when the timeout
|
||||||
option is used on the ``rtems_message_queue_receive``, ``rtems_event_receive``,
|
option is used on the :ref:`InterfaceRtemsBarrierWait`,
|
||||||
``rtems_semaphore_obtain`` and ``rtems_region_get_segment`` directives. Each
|
:ref:`InterfaceRtemsEventReceive`, :ref:`InterfaceRtemsMessageQueueReceive`,
|
||||||
task may have one and only one timeout active at a time. When a timeout
|
:ref:`InterfaceRtemsRegionGetSegment`, and :ref:`InterfaceRtemsSemaphoreObtain`
|
||||||
expires, it unblocks the task with a timeout status code.
|
directives. Each task may have one and only one timeout active at a time.
|
||||||
|
When a timeout expires, it unblocks the task with a timeout status code.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user