ReactOS 0.4.16-dev-297-gc569aee
sys_arch.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  lwip_mbox
 

Macros

#define sys_sem_valid(sema)   ((sema) != NULL)
 
#define sys_mutex_valid(mutex)   (((mutex) != NULL)
 
#define SYS_MBOX_NULL   NULL
 
#define sys_mbox_valid(mbox)   ((mbox != NULL) && ((mbox)->sem != NULL) && ((mbox)->sem != (void*)-1))
 
#define sys_mbox_valid_val(mbox)   (((mbox).sem != NULL) && ((mbox).sem != (void*)-1))
 
#define SYS_ARCH_DECL_PROTECT(lev)
 
#define SYS_ARCH_PROTECT(lev)
 
#define SYS_ARCH_UNPROTECT(lev)
 
#define LWIP_NETCONN_THREAD_SEM_GET()   sys_arch_netconn_sem_get()
 
#define LWIP_NETCONN_THREAD_SEM_ALLOC()   sys_arch_netconn_sem_alloc()
 
#define LWIP_NETCONN_THREAD_SEM_FREE()   sys_arch_netconn_sem_free()
 

Typedefs

typedef int sys_sem_t
 
typedef int sys_mutex_t
 
typedef struct lwip_mbox sys_mbox_t
 
typedef u32_t sys_thread_t
 
typedef int(* test_sys_arch_waiting_fn) (sys_sem_t *wait_sem, sys_mbox_t *wait_mbox)
 

Functions

void test_sys_arch_wait_callback (test_sys_arch_waiting_fn waiting_fn)
 
sys_sem_tsys_arch_netconn_sem_get (void)
 
void sys_arch_netconn_sem_alloc (void)
 
void sys_arch_netconn_sem_free (void)
 

Variables

u32_t lwip_sys_now
 

Macro Definition Documentation

◆ LWIP_NETCONN_THREAD_SEM_ALLOC

#define LWIP_NETCONN_THREAD_SEM_ALLOC ( )    sys_arch_netconn_sem_alloc()

Definition at line 75 of file sys_arch.h.

◆ LWIP_NETCONN_THREAD_SEM_FREE

#define LWIP_NETCONN_THREAD_SEM_FREE ( )    sys_arch_netconn_sem_free()

Definition at line 76 of file sys_arch.h.

◆ LWIP_NETCONN_THREAD_SEM_GET

#define LWIP_NETCONN_THREAD_SEM_GET ( )    sys_arch_netconn_sem_get()

Definition at line 74 of file sys_arch.h.

◆ SYS_ARCH_DECL_PROTECT

#define SYS_ARCH_DECL_PROTECT (   lev)

Definition at line 56 of file sys_arch.h.

◆ SYS_ARCH_PROTECT

#define SYS_ARCH_PROTECT (   lev)

Definition at line 57 of file sys_arch.h.

◆ SYS_ARCH_UNPROTECT

#define SYS_ARCH_UNPROTECT (   lev)

Definition at line 58 of file sys_arch.h.

◆ SYS_MBOX_NULL

#define SYS_MBOX_NULL   NULL

Definition at line 49 of file sys_arch.h.

◆ sys_mbox_valid

#define sys_mbox_valid (   mbox)    ((mbox != NULL) && ((mbox)->sem != NULL) && ((mbox)->sem != (void*)-1))

Definition at line 50 of file sys_arch.h.

◆ sys_mbox_valid_val

#define sys_mbox_valid_val (   mbox)    (((mbox).sem != NULL) && ((mbox).sem != (void*)-1))

Definition at line 51 of file sys_arch.h.

◆ sys_mutex_valid

#define sys_mutex_valid (   mutex)    (((mutex) != NULL)

Definition at line 39 of file sys_arch.h.

◆ sys_sem_valid

#define sys_sem_valid (   sema)    ((sema) != NULL)

Definition at line 36 of file sys_arch.h.

Typedef Documentation

◆ sys_mbox_t

Definition at line 48 of file sys_arch.h.

◆ sys_mutex_t

typedef int sys_mutex_t

Definition at line 38 of file sys_arch.h.

◆ sys_sem_t

typedef int sys_sem_t

Definition at line 35 of file sys_arch.h.

◆ sys_thread_t

Definition at line 54 of file sys_arch.h.

◆ test_sys_arch_waiting_fn

typedef int(* test_sys_arch_waiting_fn) (sys_sem_t *wait_sem, sys_mbox_t *wait_mbox)

Definition at line 65 of file sys_arch.h.

Function Documentation

◆ sys_arch_netconn_sem_alloc()

void sys_arch_netconn_sem_alloc ( void  )

◆ sys_arch_netconn_sem_free()

void sys_arch_netconn_sem_free ( void  )

◆ sys_arch_netconn_sem_get()

sys_sem_t * sys_arch_netconn_sem_get ( void  )

◆ test_sys_arch_wait_callback()

void test_sys_arch_wait_callback ( test_sys_arch_waiting_fn  waiting_fn)

Definition at line 69 of file sys_arch.c.

70{
71 the_waiting_fn = waiting_fn;
72}
test_sys_arch_waiting_fn the_waiting_fn
Definition: sys_arch.c:66

Variable Documentation

◆ lwip_sys_now