<div dir="ltr">I'm OK with this.<div><br></div><div>Is the statement that the API and class numbers are not </div><div>guaranteed to be held constant across releases something</div><div>that should be explicitly in a comment or requirement?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 22, 2019 at 12:52 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---<br>
 cpukit/include/rtems/score/objectdata.h | 48 +++++++++++++++++++--------------<br>
 1 file changed, 28 insertions(+), 20 deletions(-)<br>
<br>
diff --git a/cpukit/include/rtems/score/objectdata.h b/cpukit/include/rtems/score/objectdata.h<br>
index ce6e3c63a4..a33f9d497f 100644<br>
--- a/cpukit/include/rtems/score/objectdata.h<br>
+++ b/cpukit/include/rtems/score/objectdata.h<br>
@@ -50,8 +50,10 @@ typedef struct {<br>
  *  for RTEMS internal object classes.<br>
  */<br>
 typedef enum {<br>
-  OBJECTS_INTERNAL_NO_CLASS =  0,<br>
-  OBJECTS_INTERNAL_THREADS  =  1<br>
+  OBJECTS_INTERNAL_NO_CLASS = 0,<br>
+<br>
+  /* Must be one, see __Thread_Get_objects_information() */<br>
+  OBJECTS_INTERNAL_THREADS = 1<br>
 } Objects_Internal_API;<br>
<br>
 /**<br>
@@ -59,17 +61,20 @@ typedef enum {<br>
  *  for the RTEMS Classic API.<br>
  */<br>
 typedef enum {<br>
-  OBJECTS_CLASSIC_NO_CLASS     = 0,<br>
-  OBJECTS_RTEMS_TASKS          = 1,<br>
-  OBJECTS_RTEMS_TIMERS         = 2,<br>
-  OBJECTS_RTEMS_SEMAPHORES     = 3,<br>
-  OBJECTS_RTEMS_MESSAGE_QUEUES = 4,<br>
-  OBJECTS_RTEMS_PARTITIONS     = 5,<br>
-  OBJECTS_RTEMS_REGIONS        = 6,<br>
-  OBJECTS_RTEMS_PORTS          = 7,<br>
-  OBJECTS_RTEMS_PERIODS        = 8,<br>
-  OBJECTS_RTEMS_EXTENSIONS     = 9,<br>
-  OBJECTS_RTEMS_BARRIERS       = 10<br>
+  OBJECTS_CLASSIC_NO_CLASS = 0,<br>
+<br>
+  /* Must be one, see __Thread_Get_objects_information() */<br>
+  OBJECTS_RTEMS_TASKS = 1,<br>
+<br>
+  OBJECTS_RTEMS_TIMERS,<br>
+  OBJECTS_RTEMS_SEMAPHORES,<br>
+  OBJECTS_RTEMS_MESSAGE_QUEUES,<br>
+  OBJECTS_RTEMS_PARTITIONS,<br>
+  OBJECTS_RTEMS_REGIONS,<br>
+  OBJECTS_RTEMS_PORTS,<br>
+  OBJECTS_RTEMS_PERIODS,<br>
+  OBJECTS_RTEMS_EXTENSIONS,<br>
+  OBJECTS_RTEMS_BARRIERS<br>
 } Objects_Classic_API;<br>
<br>
 /**<br>
@@ -77,13 +82,16 @@ typedef enum {<br>
  *  for the POSIX API.<br>
  */<br>
 typedef enum {<br>
-  OBJECTS_POSIX_NO_CLASS            = 0,<br>
-  OBJECTS_POSIX_THREADS             = 1,<br>
-  OBJECTS_POSIX_KEYS                = 2,<br>
-  OBJECTS_POSIX_MESSAGE_QUEUES      = 5,<br>
-  OBJECTS_POSIX_SEMAPHORES          = 7,<br>
-  OBJECTS_POSIX_TIMERS              = 9,<br>
-  OBJECTS_POSIX_SHMS                = 12<br>
+  OBJECTS_POSIX_NO_CLASS = 0,<br>
+<br>
+  /* Must be one, see __Thread_Get_objects_information() */<br>
+  OBJECTS_POSIX_THREADS = 1,<br>
+<br>
+  OBJECTS_POSIX_KEYS,<br>
+  OBJECTS_POSIX_MESSAGE_QUEUES,<br>
+  OBJECTS_POSIX_SEMAPHORES,<br>
+  OBJECTS_POSIX_TIMERS,<br>
+  OBJECTS_POSIX_SHMS<br>
 } Objects_POSIX_API;<br>
<br>
 /**<br>
-- <br>
2.16.4<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>