diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-31 10:10:13 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-31 10:10:13 +0100 |
commit | 40a1e80e6391418450157eb9e69aa8b796123aaa (patch) | |
tree | 033703444d72a670dfcfa81ed8703b5171b4365d /c-user/task_manager.rst | |
parent | c-user: Update initialization (diff) | |
download | rtems-docs-40a1e80e6391418450157eb9e69aa8b796123aaa.tar.bz2 |
c-user: Task names
Update #2858.
Diffstat (limited to '')
-rw-r--r-- | c-user/task_manager.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/c-user/task_manager.rst b/c-user/task_manager.rst index 0a95f81..176e565 100644 --- a/c-user/task_manager.rst +++ b/c-user/task_manager.rst @@ -94,6 +94,20 @@ regains control of the processor, its context is restored from the TCB. When a task is restarted, the initial state of the task is restored from the starting context area in the task's TCB. +Task Name +--------- +.. index:: task name + +By default, the task name is defined by the task object name given to +:ref:`rtems_task_create() <rtems_task_create>`. The task name can be obtained +with the `pthread_getname_np() +<http://man7.org/linux/man-pages/man3/pthread_setname_np.3.html>`_ function. +Optionally, a new task name may be set with the `pthread_setname_np() +<http://man7.org/linux/man-pages/man3/pthread_setname_np.3.html>`_ function. +The maximum size of a task name is defined by the application configuration +option :ref:`CONFIGURE_MAXIMUM_THREAD_NAME_SIZE +<CONFIGURE_MAXIMUM_THREAD_NAME_SIZE>`. + Task States ----------- .. index:: task states |