patchlwIP - 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

Wed 03 Nov 2021 05:10:07 PM UTC, original submission:  

So that can do:

void my_loop() {
  long timeout;
  while (1) {
    timeout = sys_check_timeouts();
    if (timeout == LWIP_INFINITE)
      timeout = 100;
    WaitForEvent(timeout);
  }
}


Gang Zhuo <gangzhuo>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #52195:  src_core_timeouts_c.diff added by gangzhuo (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gangzhuo (Submitted the item)
  •  

    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

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code