Miosix
2.0alpha1
|
#include <e20.h>
Protected Member Functions | |
FixedEventQueueBase () | |
void | postImpl (Callback< SlotSize > &event, Callback< SlotSize > *events, unsigned int size) |
bool | IRQpostImpl (Callback< SlotSize > &event, Callback< SlotSize > *events, unsigned int size, bool *hppw=0) |
void | runImpl (Callback< SlotSize > *events, unsigned int size) |
void | runOneImpl (Callback< SlotSize > *events, unsigned int size) |
unsigned int | sizeImpl () const |
This class is to extract from FixedEventQueue code that does not depend on the NumSlots template parameters.
|
inlineprotected |
Constructor.
|
protected |
Post an event from an interrupt, or with interrupts disabled.
event | event to post |
events | pointer to event queue |
size | event queue size |
hppw | set to true if a higher priority thread is awakened, otherwise the variable is not modified |
|
protected |
Post an event. Blocks if event queue is full.
event | event to post |
events | pointer to event queue |
size | event queue size |
|
protected |
This function blocks waiting for events being posted, and when available it calls the event function. To return from this event loop an event function must throw an exception.
events | pointer to event queue |
size | event queue size |
any | exception that is thrown by the event functions |
|
protected |
Run at most one event. This function does not block.
events | pointer to event queue |
size | event queue size |
any | exception that is thrown by the event functions |
|
inlineprotected |