32 #ifndef __LWIP_SYS_H__ 33 #define __LWIP_SYS_H__ 49 #define sys_timeout(m,h,a) 50 #define sys_untimeout(m,a) 51 #define sys_sem_new(c) c 52 #define sys_sem_signal(s) 53 #define sys_sem_wait(s) 54 #define sys_sem_free(s) 55 #define sys_mbox_new() 0 56 #define sys_mbox_fetch(m,d) 57 #define sys_mbox_post(m,d) 58 #define sys_mbox_free(m) 60 #define sys_thread_new(t,a,p) 67 #define SYS_ARCH_TIMEOUT 0xffffffff 137 #ifndef SYS_ARCH_PROTECT 143 #if SYS_LIGHTWEIGHT_PROT 150 #define SYS_ARCH_DECL_PROTECT(lev) sys_prot_t lev 160 #define SYS_ARCH_PROTECT(lev) lev = sys_arch_protect() 169 #define SYS_ARCH_UNPROTECT(lev) sys_arch_unprotect(lev) 170 sys_prot_t sys_arch_protect(
void);
171 void sys_arch_unprotect(sys_prot_t pval);
175 #define SYS_ARCH_DECL_PROTECT(lev) 176 #define SYS_ARCH_PROTECT(lev) 177 #define SYS_ARCH_UNPROTECT(lev) GLbitfield GLuint64 timeout
Definition: glext.h:7831
u32_t time
Definition: sys.h:73
void * arg
Definition: sys.h:75
struct sys_timeouts * sys_arch_timeouts(void)
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
u32_t sys_arch_sem_wait(sys_sem_t sem, u32_t timeout)
void sys_mbox_post(sys_mbox_t mbox, void *msg)
int dummy
Definition: lstrlib.c:1125
GLuint GLuint GLsizei count
Definition: glext.h:6292
int sys_sem_wait_timeout(sys_sem_t sem, u32_t timeout)
Definition: sys.c:257
void(* sys_timeout_handler)(void *arg)
Definition: sys.h:69
void sys_mbox_fetch(sys_mbox_t mbox, void **msg)
Definition: sys.c:49
mqbox_t * sys_mbox_t
Definition: sys_arch.h:50
lwp_t * sys_thread_t
Definition: sys_arch.h:53
sys_mbox_t sys_mbox_new(void)
sys_timeout_handler h
Definition: sys.h:74
static const unsigned char msg[]
Definition: ccm.c:375
struct sys_timeout * next
Definition: sys.h:72
void sys_untimeout(sys_timeout_handler h, void *arg)
Definition: sys.c:208
u8 u8_t
Definition: cc.h:43
Definition: implement.h:136
struct sys_timeout * next
Definition: sys.h:79
unsigned long sys_now(void)
void sys_sem_signal(sys_sem_t sem)
u32_t sys_arch_mbox_fetch(sys_mbox_t mbox, void **msg, u32_t timeout)
void sys_msleep(u32_t ms)
Definition: sys.c:284
void sys_timeout(u32_t msecs, sys_timeout_handler h, void *arg)
Definition: sys.c:157
void sys_sem_wait(sys_sem_t sem)
Definition: sys.c:101
u32 u32_t
Definition: cc.h:47
sys_thread_t sys_thread_new(void(*thread)(void *arg), void *arg, int prio)
void sys_sem_free(sys_sem_t sem)
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390
void sys_mbox_free(sys_mbox_t mbox)
sys_sem_t sys_sem_new(u8_t count)