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

Gedare Bloom (@gedare) gitlab at rtems.org
Tue Nov 5 21:22:25 UTC 2024




Gedare Bloom commented on a discussion on cpukit/posix/src/aio_suspend.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/275#note_114380

 > +  op_num = suspendcbp->requests_left;
 > +
 > +  /* UNLOCK QUEUE AND SUSPENDCBP*/
 > +  pthread_mutex_unlock( &aio_request_queue.mutex );
 > +  pthread_mutex_unlock( &suspendcbp->mutex );
 > +
 > +  /* WAIT FOR EVENT */
 > +  if ( timeout == NULL ){
 > +    result = rtems_event_system_receive(
 > +      RTEMS_EVENT_SYSTEM_AIO_SUSPEND,
 > +      RTEMS_DEFAULT_OPTIONS,
 > +      RTEMS_NO_TIMEOUT,
 > +      &event_out
 > +    );
 > +  }else {
 > +    long ticks = rtems_timespec_to_ticks( timeout );

I don't think so, if you pass the result directly somewhere else, the interface should handle it properly.

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


More information about the bugs mailing list