|
From: | ake . forslund |
Subject: | [lwip-users] Ang: Re: wiki page Porting for an OS for 1.4.0 |
Date: | Mon, 4 Jul 2011 21:11:26 +0200 |
sys_sem_t
, sys_mbox_t
, sys_thread_t
all refer to the appropriate types, whether native OS versions or
wrappers used to make them conform to what lwIP expects. Usualy these
are typedefed directly to the systems corresponding types but if wrapper
functions are used these may be just about anything. References to a list of pre-alloced objects is but one example.Till: Mailing list for lwIP users <address@hidden>
Från: "Simon Goldschmidt"
Sänt av: address@hidden
Datum: 2011-07-04 10:26
Ärende: Re: [lwip-users] wiki page Porting for an OS for 1.4.0
Martin Velek <address@hidden> wrote:
> In a sentence in the section "Final declarations for sys_arch.h" there
> is stated "sys_sem_t, sys_mbox_t, sys_thread_t all refer to pointers
> to the appropriate types, whether native OS versions or wrappers used
> to make them conform to what lwIP expects".
>
> However I think that "sys_sem_t, sys_mbox_t, sys_thread_t" are
> typedefs to the appropriate types, not pointers (in a C way).
Both is allowed: directly using the OS structs is faster, using pointers is nice if you want to prevent including the OS headers in cc.h/sys_arch.h.
Before 1.4.0, using pointers was the only possible way, I think.
Simon
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
[Prev in Thread] | Current Thread | [Next in Thread] |