lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE : [lwip-users] New requirement for ports: sys_arch_mbox_tryfetch


From: Frédéric BERNON
Subject: RE : [lwip-users] New requirement for ports: sys_arch_mbox_tryfetch
Date: Thu, 12 Apr 2007 02:57:21 +0200

I think it will be good to update sys_arch.txt with this new information... 

About the macro you suggest, is it something like this :  

#define sys_arch_mbox_tryfetch(mbox,msg) sys_arch_mbox_fetch(mbox,msg,1)

?
  
====================================
Frédéric BERNON 
HYMATOM SA 
Chef de projet informatique 
Microsoft Certified Professional 
Tél. : +33 (0)4-67-87-61-10 
Fax. : +33 (0)4-67-70-85-44 
Email : address@hidden 
Web Site : http://www.hymatom.fr 
====================================
P Avant d'imprimer, penser à l'environnement
 


-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Jonathan Larmour
Envoyé : mercredi 11 avril 2007 17:47
À : Mailing list for lwIP users
Objet : [lwip-users] New requirement for ports: sys_arch_mbox_tryfetch


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
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users

Attachment: Frédéric BERNON.vcf
Description: Frédéric BERNON.vcf


reply via email to

[Prev in Thread] Current Thread [Next in Thread]