#include <EventHandler.h>
Definition at line 44 of file EventHandler.h.
◆ EventHandler()
Boardcore::EventHandler::EventHandler |
( |
unsigned int | stacksize = miosix::STACK_DEFAULT_FOR_PTHREAD, |
|
|
miosix::Priority | priority = miosix::MAIN_PRIORITY ) |
|
inline |
◆ ~EventHandler()
Boardcore::EventHandler::~EventHandler |
( |
| ) |
|
|
inlinevirtual |
◆ handleEvent()
virtual void Boardcore::EventHandler::handleEvent |
( |
const Event & | ev | ) |
|
|
protectedpure virtual |
◆ postEvent()
void Boardcore::EventHandler::postEvent |
( |
const Event & | ev | ) |
|
|
inlineoverridevirtual |
◆ run()
void Boardcore::EventHandler::run |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
The thread that will be spawned just calls this function. Override it to implement your logic. Remember to frequently check for shouldStop() to see if you should terminate the execution of the thread.
Implements Boardcore::ActiveObject.
Definition at line 87 of file EventHandler.h.
◆ stop()
void Boardcore::EventHandler::stop |
( |
| ) |
|
|
inlineoverridevirtual |
Signals the runner thread to terminate and joins the thread.
This is a blocking call that will not return until the thread terminates! Your run() implementation must check shouldStop() and terminate ASAP if it returns true.
Reimplemented from Boardcore::ActiveObject.
Definition at line 74 of file EventHandler.h.
◆ eventList
The documentation for this class was generated from the following file: