Chris Johns commented on a discussion on cpukit/include/rtems/record.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/282#note_114267 > + * > + * The structure shall be initialized by rtems_record_fetch_initialize(). > + */ > +typedef struct { > +#ifdef RTEMS_SMP > + /** > + * @brief This member contains the index of the processor from which the > next > + * records are fetched. > + */ > + uint32_t cpu_index; > +#endif > + /** > + * @brief This member contains the count of records which need to be > fetched > + * from the current processor before the next processor is selected. > + */ > + size_t cpu_todo; I am using `size_t` for "sizes" as it is simpler within a team to avoid warnings and casts. I also looked at `calloc` and came to the same conclusion. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/282#note_114267 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
