RKH
Loading...
Searching...
No Matches
rkhfwk_dynevt.h File Reference

Specifies the interface of dynamic event support. More...

#include "rkhitl.h"
#include "rkhfwk_evtpool.h"
Include dependency graph for rkhfwk_dynevt.h:

Go to the source code of this file.

Macros

#define RKH_ALLOC_EVT(et, e, sender_)    (void)0
 This macro dynamically creates a new event of type et with its signal.
 
#define RKH_FWK_GC(e, sender_)   (void)0
 Recycle a dynamic event.
 
#define RKH_FWK_RSV(e)   (void)0
 Reserve the dynamic event to be recycled.
 
#define RKH_SET_STATIC_EVENT(ev_obj, ev_sig)    MK_SET_EVT(ev_obj, ev_sig)
 This macro initialize an event e with es signal and establishes it as one static event.
 
#define RKH_STATIC_EVENT(ev_obj, ev_sig)    MK_EVT(ev_obj, ev_sig)
 This macro declares and initializes the event structure ev_ob with ev_sig signal number and establishes it as one static event.
 
#define RKH_ROM_STATIC_EVENT(ev_obj, ev_sig)    MK_ROM_EVT(ev_obj, ev_sig)
 This macro declares and initializes the event structure ev_ob with ev_sig signal number and establishes it as one static event.
 
#define RKH_INIT_STATIC_EVT(ev_sig)    MK_EVT_STRUCT(ev_sig)
 Initializes the attibutes of a RKH's event object structure.
 

Functions

void rkh_dynEvt_init (void)
 Initializes the dynamic event manager.
 
void rkh_fwk_registerEvtPool (void *sstart, rui32_t ssize, RKH_ES_T esize)
 Registers a new event pool into the event pool list.
 
RKH_EVT_Trkh_fwk_ae (RKH_ES_T esize, RKH_SIG_T e, const void *const sender)
 Allocates an event from the previously created event pool.
 
void rkh_fwk_gc (RKH_EVT_T *e, const void *const sender)
 Recycle a dynamic event.
 
void rkh_fwk_reserve (RKH_EVT_T *e)
 Reserve the dynamic event to be recycled.
 

Detailed Description

Specifies the interface of dynamic event support.

Definition in file rkhfwk_dynevt.h.