RTEMS | Draft: posix/aio: Implemented aio_suspend() (!275)

Alessandro Nardin (@AlessandroNardin) gitlab at rtems.org
Mon Nov 4 20:18:36 UTC 2024




Alessandro Nardin commented on a discussion on cpukit/posix/src/aio_misc.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/275#note_114323

 >    }
 >  }
 >  
 > +void rtems_aio_completed_suspend_op( suspendcb *suspendcbp )
 > +{
 > +  
 > +  if ( suspendcbp == NULL )
 > +    return;
 > +
 > +  pthread_mutex_lock( &suspendcbp->mutex );
 > +  --suspendcbp->requests_left;
 > +
 > +  if ( suspendcbp->notified == AIO_NONSIGNALED ) {
 > +    rtems_event_system_send(

Sure. I refactored it adding a variable used to understand if I have to send an event after the critical section. Let me know if this version is better.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/275#note_114323
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/e5f0236f/attachment-0001.htm>


More information about the bugs mailing list