-
Notifications
You must be signed in to change notification settings - Fork 2k
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
posix: initial import of select() function (only support sockets for now) #12975
Conversation
9bcdc1b
to
6ae8e5e
Compare
I already can see... I opened another can of POSIX-header definition hell -.- |
fea3335
to
f3196eb
Compare
Nice! This needs rebasing now |
38cdba1
to
4d7e055
Compare
4d7e055
to
78c4772
Compare
Rebased and squashed to current master. No longer has any dependencies. |
@leandrolanzieri care to review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some initial comments
Yes. Could you please update the |
Utilizing `sock_async`
Just squashed for now. Will now amend the README update. |
And updated README.md |
As discussed offline, I hardened the select implementation against potential race-conditions:
|
I rerun the test using an |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation looks good. I tested in various platforms and the example application works well. ACK!
Thanks for the review and intensive testing btw :-) |
Contribution description
This adds an implementation of the POSIX
select()
function, utilizingsock_async
. An example application is provided for how to use it.Testing procedure
Follow the README for
examples/posix_select
.Issues/PRs references
Requires
#12921(merged)