[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] New requirement for ports: sys_arch_mbox_tryfetch
From: |
Jonathan Larmour |
Subject: |
[lwip-users] New requirement for ports: sys_arch_mbox_tryfetch |
Date: |
Wed, 11 Apr 2007 16:47:08 +0100 |
User-agent: |
Thunderbird 1.5.0.10 (X11/20070301) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-users] New requirement for ports: sys_arch_mbox_tryfetch,
Jonathan Larmour <=