From a3730b38ccf668b1801164f33febb8c23428e84b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 11 Jan 2017 11:04:35 +0100 Subject: Add and use rtems_assoc_thread_states_to_string() --- cpukit/libcsupport/include/rtems/assoc.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'cpukit/libcsupport/include/rtems') diff --git a/cpukit/libcsupport/include/rtems/assoc.h b/cpukit/libcsupport/include/rtems/assoc.h index 9f65ba60a4..238a02f7c7 100644 --- a/cpukit/libcsupport/include/rtems/assoc.h +++ b/cpukit/libcsupport/include/rtems/assoc.h @@ -181,6 +181,22 @@ size_t rtems_assoc_32_to_string( const char *fallback ); +/** + * @brief Converts the specified thread states into a text representation. + * + * @param[in] states The thread states to convert. + * @param[in] buffer The buffer for the text representation. + * @param[in] buffer_size The buffer size in characters. + * + * @retval The length of the text representation. May be greater than the + * buffer size if truncation occurred. + */ +size_t rtems_assoc_thread_states_to_string( + uint32_t states, + char *buffer, + size_t buffer_size +); + #ifdef __cplusplus } #endif -- cgit v1.2.3