Gedare Bloom started a new discussion on cpukit/include/rtems/rtems/semdata.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1358#note_154969 > > #if defined( RTEMS_SMP ) > MRSP_Control MRSP; > + MPCP_Control MPCP; these should be a union, if they cannot use the same struct definition. I would however prefer a single struct with some kind of polymorphism/inheritance type of approach, like... ``` struct MRSP_Control { Multiprocessor_locking_Control base; /* MrsP specific parts here */ }; struct MPCP_Control { Multiprocessor_locking_Control base; /* MPCP specific parts here */ } ``` The challenge is to embed the information needed in the lock fast path to avoid having to follow pointers. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1358#note_154969 You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-81hsfnymd97uwkrnh4e34elhp-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
