iree/base/internal/wait_handle_poll.c
static iree_status_t iree_wait_set_resolve_poll_events(short revents,
                                                       bool* out_signaled) {
  if (revents & POLLERR) {
    return iree_make_status(IREE_STATUS_INTERNAL, "POLLERR on fd");
  } else if (revents & POLLHUP) {
    return iree_make_status(IREE_STATUS_CANCELLED, "POLLHUP on fd");
  } else if (revents & POLLNVAL) {
    return iree_make_status(IREE_STATUS_INVALID_ARGUMENT, "POLLNVAL on fd");
  }
  *out_signaled = (revents & POLLIN) != 0;
  return iree_ok_status();
}
// Maps a poll revent bitfield result to a status (on failure) and an indicator
// of whether the event was signaled.
Maps a poll revent bitfield result to a status (on failure) and an indicator
of whether the event was signaled.
Maps a poll revent bitfield result to a status ( on failure ) and an indicator of whether the event was signaled .
static iree_status_t iree_wait_set_resolve_poll_events(short revents,
                                                       bool* out_signaled) {
  if (revents & POLLERR) {
    return iree_make_status(IREE_STATUS_INTERNAL, "POLLERR on fd");
  } else if (revents & POLLHUP) {
    return iree_make_status(IREE_STATUS_CANCELLED, "POLLHUP on fd");
  } else if (revents & POLLNVAL) {
    return iree_make_status(IREE_STATUS_INVALID_ARGUMENT, "POLLNVAL on fd");
  }
  *out_signaled = (revents & POLLIN) != 0;
  return iree_ok_status();
}
static iree_status_t iree_wait_set_resolve_poll_events ( short revents , bool * out_signaled ) { if ( revents & POLLERR ) { return iree_make_status ( IREE_STATUS_INTERNAL , " " ) ; } else if ( revents & POLLHUP ) { return iree_make_status ( IREE_STATUS_CANCELLED , " " ) ; } else if ( revents & POLLNVAL ) { return iree_make_status ( IREE_STATUS_INVALID_ARGUMENT , " " ) ; } * out_signaled = ( revents & POLLIN ) != 0 ; return iree_ok_status ( ) ; }
Maps a poll revent bitfield result to a status (on failure) and an indicator
of whether the event was signaled.
Maps a poll revent bitfield result to a status ( on failure ) and an indicator of whether the event was signaled .