LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches
ThreadedInDataHandlerBase Class Reference

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>

Inheritance diagram for ThreadedInDataHandlerBase:

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ThreadedInDataHandlerBase()

ThreadedInDataHandlerBase::ThreadedInDataHandlerBase ( SmgrHandle  mgr,
InCallbackType  cb,
InResetType  reset 
)

Definition at line 54 of file lasp_threadedindatahandler.cpp.

◆ ~ThreadedInDataHandlerBase()

ThreadedInDataHandlerBase::~ThreadedInDataHandlerBase ( )

Definition at line 103 of file lasp_threadedindatahandler.cpp.

Member Function Documentation

◆ startThread()

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.

◆ stopThread()

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.


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