|
TouchCPLib
1.0.0
A touch-enabled GUI interface based on SDL and libTS. It provides a simple desktop-free UI for your embedded Raspberry projects.
|
A class that spawns an Executor Thread (or worker thread). The thread is used for handling intensive and I/O operations without burdening the main thread, which should only care about drawing stuff. More...
#include <WorkerThread.h>
Public Member Functions | |
| WorkerThread () | |
| ~WorkerThread () | |
| void | runOnWorker (Task *task) |
| Adds a new task to the queue. It will be deleted when done. More... | |
A class that spawns an Executor Thread (or worker thread). The thread is used for handling intensive and I/O operations without burdening the main thread, which should only care about drawing stuff.
| WorkerThread::WorkerThread | ( | ) |
| WorkerThread::~WorkerThread | ( | ) |
| void WorkerThread::runOnWorker | ( | Task * | task | ) |
Adds a new task to the queue. It will be deleted when done.
| task | The task to add |