JackTrip
|
Prototype of the worker class that will be cloned through sending threads to the Thread Pool. More...
#include <JackTripWorker.h>
Signals | |
void | signalRemoveThread () |
Public Member Functions | |
JackTripWorker (UdpHubListener *udpmasterlistener, int BufferQueueLength=gDefaultQueueLength, JackTrip::underrunModeT UnderRunMode=JackTrip::WAVETABLE) | |
The class constructor. More... | |
virtual | ~JackTripWorker () |
The class destructor. More... | |
void | run () |
Implements the Thread Loop. To start the thread, call start() ( DO NOT CALL run() ). More... | |
bool | isSpawning () |
Check if the Thread is Spawning. More... | |
void | setJackTrip (int id, QString client_address, uint16_t server_port, uint16_t client_port, int num_channels, bool connectDefaultAudioPorts) |
Sets the JackTripWorker properties. More... | |
void | stopThread () |
Stop and remove thread from pool. More... | |
int | getID () |
Prototype of the worker class that will be cloned through sending threads to the Thread Pool.
This class can be send to the ThreadPool using the start() method. Each time it is sent, it'll became "independent" of the prototype, which means that the prototype state can be changed, and used to send and start another thread into the pool. setAutoDelete must be set to false in order for this to work.
JackTripWorker::JackTripWorker | ( | UdpHubListener * | udpmasterlistener, |
int | BufferQueueLength = gDefaultQueueLength , |
||
JackTrip::underrunModeT | UnderRunMode = JackTrip::WAVETABLE |
||
) |
The class constructor.
|
virtual |
The class destructor.
|
inline |
bool JackTripWorker::isSpawning | ( | ) |
Check if the Thread is Spawning.
void JackTripWorker::run | ( | ) |
Implements the Thread Loop. To start the thread, call start() ( DO NOT CALL run() ).
void JackTripWorker::setJackTrip | ( | int | id, |
QString | client_address, | ||
uint16_t | server_port, | ||
uint16_t | client_port, | ||
int | num_channels, | ||
bool | connectDefaultAudioPorts | ||
) |
Sets the JackTripWorker properties.
id | ID number |
address |
|
signal |
void JackTripWorker::stopThread | ( | ) |
Stop and remove thread from pool.