lwIP - A Lightweight TCP/IP stack - Patches: patch #10133, sys_check_timeouts: return wait...
You are not allowed to post comments on this tracker with your current authentication level.
patch #10133: sys_check_timeouts: return wait time for next loop
Submitter: | Gang Zhuo <gangzhuo> | ||
Submitted: | Wed 03 Nov 2021 05:10:07 PM UTC | ||
Category: | Contrib | Priority: | 5 - Normal |
Status: | None | Privacy: | Public |
Assigned to: | None | Open/Closed: | Open |
Planned Release: | None |
Attached Files
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follows 1 latest change.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2021-11-03 | gangzhuo | Attached File | - | ![]() |
Added src_core_timeouts_c.diff, #52195 |
So that can do:
void my_loop() {
long timeout;
while (1) {
timeout = sys_check_timeouts();
if (timeout == LWIP_INFINITE)
timeout = 100;
WaitForEvent(timeout);
}
}