![]() |
DSPatch
v.2.42
C++ Cross-Platform, Object-Oriented, Flow-Based Programming Library
|
Thread class for ticking and reseting a single component. More...
#include <DspComponentThread.h>
Public Member Functions | |
void | Initialise (DspComponent *component) |
bool | IsStopped () const |
void | Start (Priority priority=TimeCriticalPriority) |
void | Stop () |
void | Pause () |
void | Resume () |
Additional Inherited Members | |
![]() | |
enum | Priority { IdlePriority, LowestPriority, LowPriority, NormalPriority, HighPriority, HighestPriority, TimeCriticalPriority } |
![]() | |
static void | SetPriority (Priority priority) |
static void | MsSleep (unsigned short milliseconds) |
Thread class for ticking and reseting a single component.
A DspComponentThread is responsible for ticking and reseting a single component continuously in a separate free-running thread. On construction, a reference to the component must be provided for the DspThread's _Run() method to use. Once Start() has been called, the thread will begin repeatedly executing the _Run() method. On each thread iteration, DspComponentThread simply calls the reference component's Tick() and Reset() methods. The Pause() method causes DspComponentThread to wait until instructed to Resume() again.
Definition at line 46 of file DspComponentThread.h.