[rtems commit] score: Provide struct _Thread_queue_Heads

Sebastian Huber sebh at rtems.org
Fri Jul 31 05:27:28 UTC 2015


Module:    rtems
Branch:    master
Commit:    e421936bbb5de6a0441f4945b52eda3b569a9bae
Changeset: http://git.rtems.org/rtems/commit/?id=e421936bbb5de6a0441f4945b52eda3b569a9bae

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jun 29 14:24:14 2015 +0200

score: Provide struct _Thread_queue_Heads

Use a leading underscore in the structure name to allow forward
declarations in standard header files provided by Newlib and GCC.

---

 cpukit/score/include/rtems/score/threadq.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/cpukit/score/include/rtems/score/threadq.h b/cpukit/score/include/rtems/score/threadq.h
index 70b5ad6..7622551 100644
--- a/cpukit/score/include/rtems/score/threadq.h
+++ b/cpukit/score/include/rtems/score/threadq.h
@@ -41,7 +41,13 @@ extern "C" {
 
 typedef struct _Thread_Control Thread_Control;
 
-typedef struct {
+/**
+ * @brief Thread queue heads.
+ *
+ * Uses a leading underscore in the structure name to allow forward
+ * declarations in standard header files provided by Newlib and GCC.
+ */
+typedef struct _Thread_queue_Heads {
   /** This union contains the data structures used to manage the blocked
    *  set of tasks which varies based upon the discipline.
    */




More information about the vc mailing list