DSPatch  v.6.01
Public Member Functions | List of all members
DSPatch::internal::ComponentThread Class Referencefinal

Thread class for asynchronously ticking a single circuit component. More...

#include <ComponentThread.h>

Public Member Functions

 NONCOPYABLE (ComponentThread)
 
 DEFINE_PTRS (ComponentThread)
 
void Start ()
 
void Stop ()
 
void Sync ()
 
void Resume (std::function< void()> const &tick)
 

Detailed Description

Thread class for asynchronously ticking a single circuit component.

A ComponentThread's primary purpose is to tick parallel circuit components in parallel.

Upon Start(), an internal thread will spawn and wait for the first call to Resume() before executing the tick method provided. A call to Sync() will then block until the thread has completed execution of the tick method. At this point, the thread will wait until instructed to resume again.

Definition at line 47 of file ComponentThread.h.


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