Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pselect in OS_DoSelect to avoid needed conversions #856

Open
skliper opened this issue Mar 10, 2021 · 0 comments
Open

Use pselect in OS_DoSelect to avoid needed conversions #856

skliper opened this issue Mar 10, 2021 · 0 comments

Comments

@skliper
Copy link
Contributor

skliper commented Mar 10, 2021

Is your feature request related to a problem? Please describe.
Could avoid timespec to timeval conversion:

/* note that the tv_sec and tv_usec/tv_nsec values are all signed longs, so OK to subtract */
tv.tv_sec = ts_end.tv_sec - ts_now.tv_sec;
tv.tv_usec = (ts_end.tv_nsec - ts_now.tv_nsec) / 1000;

if pselect was used here:
os_status = select(maxfd + 1, rd_set, wr_set, NULL, tvptr);

Describe the solution you'd like
Use pselect, need to check VxWorks/RTEMS support

Describe alternatives you've considered
Leave as-is (future work)

Additional context
None

Requester Info
Jacob Hageman - NASA/GSFC, OSAL code review

jphickey pushed a commit to jphickey/osal that referenced this issue Aug 10, 2022
Apply nasa#853 to Bootes, Set Revision to 99 for development build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant