posix: initial import of select() function (only support sockets for now)#12975
posix: initial import of select() function (only support sockets for now)#12975leandrolanzieri merged 6 commits intoRIOT-OS:masterfrom
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? |
leandrolanzieri
left a comment
There was a problem hiding this comment.
Some initial comments
leandrolanzieri
left a comment
There was a problem hiding this comment.
Some minor comments. Also, why are you adding an empty doc.txt? I'll be running the test applications now on different platforms
examples/posix_select/README.md
Outdated
| 2019-12-17 16:47:01,796 # Hello World! | ||
| ``` | ||
|
|
||
| Alternatively, with `native` or if your host also can connect to board, you can |
There was a problem hiding this comment.
| Alternatively, with `native` or if your host also can connect to board, you can | |
| Alternatively, with `native` or if your host also can connect to the board, you can |
sys/posix/select/posix_select.c
Outdated
| * @{ | ||
| * @file | ||
| * @author Martine S. Lenders <m.lenders@fu-berlin.de> | ||
| * @todo |
|
Testing looks mostly good. Just one thing I noticed in (2). 1. Native using
|
Not sure. Probably because |
Just to be clear: in the logs you provided this isn't the case, right? Because I count 10 message prints. |
|
May I squash? |
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 |
leandrolanzieri
left a comment
There was a problem hiding this comment.
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)