LASP 1.0
Library for Acoustic Signal Processing
|
Threaded in data handler base. Buffers inCallback data and calls a callback with the same signature on a different thread. The main function of this is to offload the thread that handles the stream, such that expensive computations do not result in stream buffer xruns. More...
#include <lasp_threadedindatahandler.h>
Public Member Functions | |
ThreadedInDataHandlerBase (SmgrHandle mgr, InCallbackType cb, InResetType reset) | |
~ThreadedInDataHandlerBase () | |
void | startThread () |
This method should be called from the derived class' constructor, to start the thread and data is incoming. | |
void | stopThread () |
This method SHOULD be called from all classes that derive on ThreadedInDataHandler. It is to make sure the inCallback_threaded() function is no longer called when the destructor of the derived class is called. Not calling this function is regarded as a BUG. | |
Threaded in data handler base. Buffers inCallback data and calls a callback with the same signature on a different thread. The main function of this is to offload the thread that handles the stream, such that expensive computations do not result in stream buffer xruns.
Definition at line 27 of file lasp_threadedindatahandler.h.
ThreadedInDataHandlerBase::ThreadedInDataHandlerBase | ( | SmgrHandle | mgr, |
InCallbackType | cb, | ||
InResetType | reset | ||
) |
Definition at line 54 of file lasp_threadedindatahandler.cpp.
ThreadedInDataHandlerBase::~ThreadedInDataHandlerBase | ( | ) |
Definition at line 103 of file lasp_threadedindatahandler.cpp.
void ThreadedInDataHandlerBase::startThread | ( | ) |
This method should be called from the derived class' constructor, to start the thread and data is incoming.
Definition at line 67 of file lasp_threadedindatahandler.cpp.
void ThreadedInDataHandlerBase::stopThread | ( | ) |
This method SHOULD be called from all classes that derive on ThreadedInDataHandler. It is to make sure the inCallback_threaded() function is no longer called when the destructor of the derived class is called. Not calling this function is regarded as a BUG.
Definition at line 89 of file lasp_threadedindatahandler.cpp.