RTEMS | Improve event record handling (!282)
Chris Johns (@chris)
gitlab at rtems.org
Mon Nov 4 00:23:44 UTC 2024
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241104/ca5e5b4d/attachment.htm>
More information about the bugs
mailing list