diff options
Diffstat (limited to 'cpukit/include')
-rw-r--r-- | cpukit/include/rtems/confdefs.h | 2 | ||||
-rw-r--r-- | cpukit/include/rtems/score/thread.h | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h index 5bda122b4f..45a75f0c6f 100644 --- a/cpukit/include/rtems/confdefs.h +++ b/cpukit/include/rtems/confdefs.h @@ -2637,7 +2637,7 @@ struct _reent *__getreent(void) ) #ifndef CONFIGURE_MAXIMUM_THREAD_NAME_SIZE - #define CONFIGURE_MAXIMUM_THREAD_NAME_SIZE 16 + #define CONFIGURE_MAXIMUM_THREAD_NAME_SIZE THREAD_DEFAULT_MAXIMUM_NAME_SIZE #endif #ifdef CONFIGURE_INIT diff --git a/cpukit/include/rtems/score/thread.h b/cpukit/include/rtems/score/thread.h index b3cfd91e93..fd99e8bb77 100644 --- a/cpukit/include/rtems/score/thread.h +++ b/cpukit/include/rtems/score/thread.h @@ -940,6 +940,15 @@ extern const size_t _Thread_Control_add_on_count; extern const size_t _Thread_Initial_thread_count; /** + * @brief The default maximum size of a thread name in characters (including + * the terminating '\0' character). + * + * This is the default value for the application configuration option + * CONFIGURE_MAXIMUM_THREAD_NAME_SIZE. + */ +#define THREAD_DEFAULT_MAXIMUM_NAME_SIZE 16 + +/** * @brief Maximum size of a thread name in characters (including the * terminating '\0' character). * |