[rtems commit] taskcreate.c: Add method name to comment to be clearer

Joel Sherrill joel at rtems.org
Mon Jan 18 23:35:06 UTC 2016


Module:    rtems
Branch:    master
Commit:    2b9374e147de3a458e0b26855911e63611071f07
Changeset: http://git.rtems.org/rtems/commit/?id=2b9374e147de3a458e0b26855911e63611071f07

Author:    Joel Sherrill <joel at rtems.org>
Date:      Mon Jan 18 17:34:25 2016 -0600

taskcreate.c: Add method name to comment to be clearer

---

 cpukit/rtems/src/taskcreate.c | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/cpukit/rtems/src/taskcreate.c b/cpukit/rtems/src/taskcreate.c
index f8107be..5d9f9dd 100644
--- a/cpukit/rtems/src/taskcreate.c
+++ b/cpukit/rtems/src/taskcreate.c
@@ -6,7 +6,7 @@
  */
 
 /*
- *  COPYRIGHT (c) 1989-2014.
+ *  COPYRIGHT (c) 1989-2014,2016.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -102,19 +102,14 @@ rtems_status_code rtems_task_create(
 #endif
 
   /*
-   *  Make sure system is MP if this task is global
-   */
-
-  /*
    *  Allocate the thread control block and -- if the task is global --
    *  allocate a global object control block.
    *
    *  NOTE:  This routine does not use the combined allocate and open
-   *         global object routine because this results in a lack of
-   *         control over when memory is allocated and can be freed in
-   *         the event of an error.
+   *         global object routine (_Objects_MP_Allocate_and_open) because
+   *         this results in a lack of control over when memory is allocated
+   *         and can be freed in the event of an error.
    */
-
   the_thread = _RTEMS_tasks_Allocate();
 
   if ( !the_thread ) {




More information about the vc mailing list