mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-12-11 09:16:48 +08:00
This refactors event_callback() to separate updating socket event state from processing the select list (to apply socket event change) Refactoring changes: 1) select_list_cb processing has been moved to a new local function called select_check_waiters() 2) goto no_select_wakeup has been removed and now we use a flag to track whether to call select_check_waiters() 3) There is a small functional change for !LWIP_TCPIP_CORE_LOCKING. We call SYS_ARCH_UNPROTECT after saving events but before calling select_check_waiters() (which now calls PROTECT before starting the loop). Before the code held the PROTECT across saving the events and the first loop iteration, but this didn't protect against anything because each loop iteration we do an UNPROTECT/PROTECT 4) Better documentation for both LWIP_TCPIP_CORE_LOCKING and !LWIP_TCPIP_CORE_LOCKING