To avoid some near-polling in netconn_delete(), there is now (in CVS) a new function that ports must implement, declared in lwip/sys.h:

u32_t sys_arch_mbox_tryfetch(sys_mbox_t mbox, void **msg);

This function must attempt to retrieve a message, or if none is present, it should return immediately with SYS_MBOX_EMPTY.

As an alternative, the port can define a function-like macro in arch/sys_arch.h so that calls to sys_arch_mbox_tryfetch can be something more arbitrary than a function.

Jifl
--
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["The best things in life aren't things."]------      Opinions==mine


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to