[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] wiki page Porting for an OS for 1.4.0
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] wiki page Porting for an OS for 1.4.0 |
Date: |
Mon, 04 Jul 2011 10:21:27 +0200 |
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