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.
WorkerThread Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ WorkerThread()

WorkerThread::WorkerThread ( )

◆ ~WorkerThread()

WorkerThread::~WorkerThread ( )

Member Function Documentation

◆ runOnWorker()

void WorkerThread::runOnWorker ( Task task)

Adds a new task to the queue. It will be deleted when done.

Parameters
taskThe task to add

The documentation for this class was generated from the following files: