Jan Kiszka : native: Improve documentation of rt_task_join and rt_task_delete
Quoted 22 lines · GIT version control
Module: xenomai-jki Branch: for-upstream Commit: df5646768a089b38343dfe676912006616bde5c2 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=df5646768a089b38343dfe676912006616bde5c2Author: Jan Kiszka <[email protected]> Date: Fri Aug 20 16:22:55 2010 +0200native: Improve documentation of
rt_task_joinandrt_task_deleteSigned-off-by Jan Kiszka <[email protected]>---
ksrc/skins/native/task.c | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-)ksrc/skins/native/task.c +0
-0
ksrc/skins/native/task.c int rt_task_resume(RT_TASK *task) · line 594
Quoted 7 lines
ksrc/skins/native/task.c +3
-0@@ -588,6 +588,9 @@ int rt_task_resume(RT_TASK *task)* * Rescheduling: always if @a task is NULL, and possible if the * deleted task is currently running into a safe section. +* +* @note A task that was successfully joined via rt_task_join() must not be +* explicitly deleted afterwards. */
Should not we document the fact that a task which has been successfully deleted must be joined (in the process where it is running)? I seem to remember that being the subject of a discussion...
Signature · 1 line
Gilles.
Quoted 18 lines · Gilles Chanteperdrix
Quoted 17 lines · GIT version control
Module: xenomai-jki Branch: for-upstream Commit: df5646768a089b38343dfe676912006616bde5c2 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=df5646768a089b38343dfe676912006616bde5c2Author: Jan Kiszka <[email protected]> Date: Fri Aug 20 16:22:55 2010 +0200native: Improve documentation of
rt_task_joinandrt_task_deleteSigned-off-by Jan Kiszka <[email protected]>---
ksrc/skins/native/task.c | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-)
Quoted 17 lines
ksrc/skins/native/task.c int rt_task_resume(RT_TASK *task) · line 594
Quoted 12 lines
ksrc/skins/native/task.c +3
-0@@ -588,6 +588,9 @@ int rt_task_resume(RT_TASK *task)* * Rescheduling: always if @a task is NULL, and possible if the * deleted task is currently running into a safe section. +* +* @note A task that was successfully joined via rt_task_join() must not be +* explicitly deleted afterwards. */ Should not we document the fact that a task which has been successfully deleted must be joined (in the process where it is running)? I seem to remember that being the subject of a discussion...
We already do when describing T_JOINABLE, but we should indeed repeat this here as it may not be obvious. Will update the patch.
Jan
Quoted 36 lines · Jan Kiszka
Quoted 18 lines · Gilles Chanteperdrix
Quoted 17 lines · GIT version control
Module: xenomai-jki Branch: for-upstream Commit: df5646768a089b38343dfe676912006616bde5c2 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=df5646768a089b38343dfe676912006616bde5c2Author: Jan Kiszka <[email protected]> Date: Fri Aug 20 16:22:55 2010 +0200native: Improve documentation of
rt_task_joinandrt_task_deleteSigned-off-by Jan Kiszka <[email protected]>---
ksrc/skins/native/task.c | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-)Quoted 16 lines
ksrc/skins/native/task.c int rt_task_resume(RT_TASK *task) · line 594
Quoted 12 lines
ksrc/skins/native/task.c +3
-0@@ -588,6 +588,9 @@ int rt_task_resume(RT_TASK *task)* * Rescheduling: always if @a task is NULL, and possible if the * deleted task is currently running into a safe section. +* +* @note A task that was successfully joined via rt_task_join() must not be +* explicitly deleted afterwards. */ Should not we document the fact that a task which has been successfully deleted must be joined (in the process where it is running)? I seem to remember that being the subject of a discussion...
Quoted 2 lines
We already do when describing
T_JOINABLE, but we should indeed repeat this here as it may not be obvious. Will update the patch.
Update pushed, for-upstream head is now 95359c1.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux