diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-01-29 18:45:05 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-01 06:22:19 +0100 |
commit | 76eec484e599e36f7c03a59b630369be17f6f935 (patch) | |
tree | f628278d0cb3558acf216fb3cb309c041ebd59a9 /cpukit/include/rtems/score | |
parent | bsps/aarch64: Add missing include (diff) | |
download | rtems-76eec484e599e36f7c03a59b630369be17f6f935.tar.bz2 |
score: Rename _Thread_Get_objects_information()
Rename _Thread_Get_objects_information() in
_Thread_Get_objects_information_by_id() to emphasize that this thread
method uses an object identifier and not a thread control.
Diffstat (limited to 'cpukit/include/rtems/score')
-rw-r--r-- | cpukit/include/rtems/score/objectdata.h | 6 | ||||
-rw-r--r-- | cpukit/include/rtems/score/threadimpl.h | 14 | ||||
-rw-r--r-- | cpukit/include/rtems/score/threadmp.h | 2 |
3 files changed, 13 insertions, 9 deletions
diff --git a/cpukit/include/rtems/score/objectdata.h b/cpukit/include/rtems/score/objectdata.h index 952c150e1f..149498df9c 100644 --- a/cpukit/include/rtems/score/objectdata.h +++ b/cpukit/include/rtems/score/objectdata.h @@ -55,7 +55,7 @@ typedef struct { typedef enum { OBJECTS_INTERNAL_NO_CLASS = 0, - /* Must be one, see __Thread_Get_objects_information() */ + /* Must be one, see _Thread_Get_objects_information_by_id() */ OBJECTS_INTERNAL_THREADS = 1 } Objects_Internal_API; @@ -66,7 +66,7 @@ typedef enum { typedef enum { OBJECTS_CLASSIC_NO_CLASS = 0, - /* Must be one, see __Thread_Get_objects_information() */ + /* Must be one, see _Thread_Get_objects_information_by_id() */ OBJECTS_RTEMS_TASKS = 1, OBJECTS_RTEMS_TIMERS, @@ -87,7 +87,7 @@ typedef enum { typedef enum { OBJECTS_POSIX_NO_CLASS = 0, - /* Must be one, see __Thread_Get_objects_information() */ + /* Must be one, see _Thread_Get_objects_information_by_id() */ OBJECTS_POSIX_THREADS = 1, OBJECTS_POSIX_KEYS, diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h index 52945b407c..d5381c9871 100644 --- a/cpukit/include/rtems/score/threadimpl.h +++ b/cpukit/include/rtems/score/threadimpl.h @@ -814,14 +814,18 @@ RTEMS_INLINE_ROUTINE Priority_Control _Thread_Priority_highest( } /** - * @brief Gets object information for the object id. + * @brief Gets the thread object information for the API of the object + * identifier. * - * @param id The id of the object information. + * @param id is an object identifier which defines the API to get the + * associated thread objects information. * - * @retval pointer The object information for this id. - * @retval NULL The object id is not valid. + * @retval NULL The object identifier had an invalid API. + * + * @return Returns the thread object information associated with the API of the + * object identifier. */ -RTEMS_INLINE_ROUTINE Objects_Information *_Thread_Get_objects_information( +RTEMS_INLINE_ROUTINE Objects_Information *_Thread_Get_objects_information_by_id( Objects_Id id ) { diff --git a/cpukit/include/rtems/score/threadmp.h b/cpukit/include/rtems/score/threadmp.h index ae973ef0d8..6cc68e6320 100644 --- a/cpukit/include/rtems/score/threadmp.h +++ b/cpukit/include/rtems/score/threadmp.h @@ -117,7 +117,7 @@ RTEMS_INLINE_ROUTINE bool _Thread_MP_Is_remote( Objects_Id id ) { Objects_Information *information; - information = _Thread_Get_objects_information( id ); + information = _Thread_Get_objects_information_by_id( id ); if ( information == NULL ) { return false; } |