RTEMS | Draft: posix/aio: Implemented aio_suspend() (!275)
Alessandro Nardin (@AlessandroNardin)
gitlab at rtems.org
Mon Nov 4 20:21:40 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_114332
> + &event_out
> + );
> + }
> +
> + /* CONTROL IF TIMEOUT*/
> + if (result == RTEMS_TIMEOUT) {
> + rtems_set_errno_and_return_minus_one( EAGAIN );
> + }
> +
> + /* CONTROL IF AT LEAST ONE OPERATION */
> + for (int i = 0; i < nent; i++) {
> + if ( list[i]-> error_code == EINPROGRESS ) {
> + op_num --;
> + }
> + }
> + if ( op_num == 0 ) {
op_num cannot reach negative values, but I'll change the comparison to <= just to be extra cautious.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/275#note_114332
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/945486ff/attachment.htm>
More information about the bugs
mailing list