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

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




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

 > +  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 had the call to `rtems_timespec_to_ticks` on another line for debugging purposes. If i put it below, in the call to `rtems_event_system_receive` do I need the cast?

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


More information about the bugs mailing list