summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/include/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-11 11:04:35 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-12 07:44:37 +0100
commita3730b38ccf668b1801164f33febb8c23428e84b (patch)
tree8b0f8148b2c97d5e1dddbac447038106004a4f17 /cpukit/libcsupport/include/rtems
parentlibdebugger: Fix const qualifier (diff)
downloadrtems-a3730b38ccf668b1801164f33febb8c23428e84b.tar.bz2
Add and use rtems_assoc_thread_states_to_string()
Diffstat (limited to 'cpukit/libcsupport/include/rtems')
-rw-r--r--cpukit/libcsupport/include/rtems/assoc.h16
1 files changed, 16 insertions, 0 deletions
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