Gedare Bloom started a new discussion on cpukit/dhrl/dhrl.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150591

 > +};
 > +
 > +static struct dhrl_control dhrl_instance;
 > +
 > +/* Worker Task Implementation */
 > +static rtems_task dhrl_worker_loop( rtems_task_argument arg )
 > +{
 > +  struct dhrl_control *ctx = (struct dhrl_control *) arg;
 > +  int channel_id = ( ctx->worker_a_id == rtems_task_self() ) ? 0 : 1;
 > +
 > +  while ( 1 ) {
 > +    rtems_barrier_wait( ctx->start_barrier, RTEMS_NO_TIMEOUT );
 > +
 > +    atomic_thread_fence( memory_order_acquire );
 > +
 > +    unsigned int my_epoch = atomic_load_explicit(

declare all variables at the start of their scope.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150591
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

Reply via email to