-
Notifications
You must be signed in to change notification settings - Fork 511
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
[Gen 3] System thread wakeup on cloud data #2113
Merged
avtolstoy
merged 5 commits into
develop
from
feature/poc-system-thread-wakeup-on-cloud-data
Jun 3, 2020
Merged
[Gen 3] System thread wakeup on cloud data #2113
avtolstoy
merged 5 commits into
develop
from
feature/poc-system-thread-wakeup-on-cloud-data
Jun 3, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
05a1699
to
63812fb
Compare
sergeuz
approved these changes
May 29, 2020
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.
I wouldn't expect a PR implementing this to be so nice and concise. Well done 👍
@@ -111,3 +111,7 @@ ssize_t sock_recvmsg(int s, struct msghdr *message, int flags) { | |||
ssize_t sock_sendmsg(int s, const struct msghdr *message, int flags) { | |||
return lwip_sendmsg(s, message, flags); | |||
} | |||
|
|||
int sock_ioctl(int s, long cmd, void* argp) { |
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.
Let's expose it via dynalib as well,
…bc96259ab67b0c7709a70e
…n supported platforms
…b575c47f6899904ad46e89
63812fb
to
ab8d8d1
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
With threading enabled system thread is only scheduled to run every 100ms, or when a task is posted into its queue. This negatively affects OTA times.
Solution
This PR attempts to add support for system thread wakeup whenever data arrives on a cloud socket. This is only support at the moment for Gen 3 platforms by adding
SIOCSPGRP
ioctl support to LwIP and using threads instead of normalpid_t
(should we change that and still usepid_t
and cast from/to abstract thread handles?).Steps to Test
Example App
N/A
References
Completeness