ChibiOS  21.6.0
chdelegates.h File Reference

Delegate threads macros and structures. More...

#include <stdarg.h>

Go to the source code of this file.

Typedefs

typedef msg_t(* delegate_veneer_t) (va_list *argsp)
 Type of a delegate veneer function. More...
 
typedef msg_t(* delegate_fn0_t) (void)
 Type of a delegate function with no parameters. More...
 
typedef msg_t(* delegate_fn1_t) (msg_t p1)
 Type of a delegate function with one parameter. More...
 
typedef msg_t(* delegate_fn2_t) (msg_t p1, msg_t p2)
 Type of a delegate function with two parameters. More...
 
typedef msg_t(* delegate_fn3_t) (msg_t p1, msg_t p2, msg_t p3)
 Type of a delegate function with three parameters. More...
 
typedef msg_t(* delegate_fn4_t) (msg_t p1, msg_t p2, msg_t p3, msg_t p4)
 Type of a delegate function with four parameters. More...
 

Functions

msg_t __ch_delegate_fn0 (va_list *argsp)
 Veneer for functions with no parameters. More...
 
msg_t __ch_delegate_fn1 (va_list *argsp)
 Veneer for functions with one parameter. More...
 
msg_t __ch_delegate_fn2 (va_list *argsp)
 Veneer for functions with two parameters. More...
 
msg_t __ch_delegate_fn3 (va_list *argsp)
 Veneer for functions with three parameters. More...
 
msg_t __ch_delegate_fn4 (va_list *argsp)
 Veneer for functions with four parameters. More...
 
void chDelegateDispatch (void)
 Call messages dispatching. More...
 
msg_t chDelegateDispatchTimeout (sysinterval_t timeout)
 Call messages dispatching with timeout. More...
 
msg_t chDelegateCallVeneer (thread_t *tp, delegate_veneer_t veneer,...)
 Triggers a function call on a delegate thread. More...
 
static msg_t chDelegateCallDirect0 (thread_t *tp, delegate_fn0_t func)
 Direct call to a function with no parameters. More...
 
static msg_t chDelegateCallDirect1 (thread_t *tp, delegate_fn1_t func, msg_t p1)
 Direct call to a function with one parameter. More...
 
static msg_t chDelegateCallDirect2 (thread_t *tp, delegate_fn2_t func, msg_t p1, msg_t p2)
 Direct call to a function with two parameters. More...
 
static msg_t chDelegateCallDirect3 (thread_t *tp, delegate_fn3_t func, msg_t p1, msg_t p2, msg_t p3)
 Direct call to a function with three parameters. More...
 
static msg_t chDelegateCallDirect4 (thread_t *tp, delegate_fn4_t func, msg_t p1, msg_t p2, msg_t p3, msg_t p4)
 Direct call to a function with four parameters. More...
 

Detailed Description

Delegate threads macros and structures.

Definition in file chdelegates.h.