mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 08:54:44 +08:00
taskcreate.c: Add method name to comment to be clearer
This commit is contained in:
@@ -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
|
||||
@@ -101,20 +101,15 @@ rtems_status_code rtems_task_create(
|
||||
is_global = false;
|
||||
#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 ) {
|
||||
|
||||
Reference in New Issue
Block a user