Skip to main content
Header: utils/inc/qshWorker.h

Structures

qshWorker

Implementation of a worker thread with its own task-queue.

Functions

qshWorker
creates a worker thread and starts processing tasks
~qshWorker
terminates the worker thread, after shutting it down
shutdownWorker
Signals the worker thread to stop processing tasks, waits until the thread completes execution.
setName
addTask
add a new task for the worker to do Tasks are performed in order in which they are added
Parameters
const workerTask &
task to perform

Type Definitions

workerTask

type alias for worker’s task function

Macros

UNUSED