|
tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications
« « « Anklang Documentation |
Public Member Functions | |
| ThreadPool (MultiThreadedNodePlayer &p) | |
| void | createThreads (size_t numThreads) |
| void | clearThreads () |
| void | signalOne () |
| void | signalAll () |
| void | wait () |
| void | waitForFinalNode () |
| void | signalShouldExit () |
| Signals the pool that all the threads should exit. | |
| void | resetExitSignal () |
| Signals the pool that all the threads should continue to run and not exit. | |
| bool | shouldExit () const |
| Returns true if all the threads should exit. | |
| bool | shouldWait () |
| Returns true if there are no free Nodes to be processed and the calling thread should wait until there are Nodes ready. | |
| bool | process () |
| Process the next chain of Nodes. | |
Definition at line 25 of file tracktion_MultiThreadedNodePlayer.cpp.
| tracktion::graph::MultiThreadedNodePlayer::ThreadPool::ThreadPool | ( | MultiThreadedNodePlayer & | p | ) |
Definition at line 29 of file tracktion_MultiThreadedNodePlayer.cpp.
| void tracktion::graph::MultiThreadedNodePlayer::ThreadPool::clearThreads | ( | ) |
Definition at line 48 of file tracktion_MultiThreadedNodePlayer.cpp.
| void tracktion::graph::MultiThreadedNodePlayer::ThreadPool::createThreads | ( | size_t | numThreads | ) |
Definition at line 34 of file tracktion_MultiThreadedNodePlayer.cpp.
| bool tracktion::graph::MultiThreadedNodePlayer::ThreadPool::process | ( | ) |
Process the next chain of Nodes.
Returns true if at least one Node was processed, false if no Nodes were processed. You can use this to determine how long to pause/wait for before processing again.
Definition at line 151 of file tracktion_MultiThreadedNodePlayer.cpp.
| void tracktion::graph::MultiThreadedNodePlayer::ThreadPool::resetExitSignal | ( | ) |
Signals the pool that all the threads should continue to run and not exit.
Definition at line 125 of file tracktion_MultiThreadedNodePlayer.cpp.
| bool tracktion::graph::MultiThreadedNodePlayer::ThreadPool::shouldExit | ( | ) | const |
Returns true if all the threads should exit.
Definition at line 131 of file tracktion_MultiThreadedNodePlayer.cpp.
| bool tracktion::graph::MultiThreadedNodePlayer::ThreadPool::shouldWait | ( | ) |
Returns true if there are no free Nodes to be processed and the calling thread should wait until there are Nodes ready.
Definition at line 139 of file tracktion_MultiThreadedNodePlayer.cpp.
| void tracktion::graph::MultiThreadedNodePlayer::ThreadPool::signalAll | ( | ) |
Definition at line 68 of file tracktion_MultiThreadedNodePlayer.cpp.
| void tracktion::graph::MultiThreadedNodePlayer::ThreadPool::signalOne | ( | ) |
Definition at line 58 of file tracktion_MultiThreadedNodePlayer.cpp.
| void tracktion::graph::MultiThreadedNodePlayer::ThreadPool::signalShouldExit | ( | ) |
Signals the pool that all the threads should exit.
Definition at line 118 of file tracktion_MultiThreadedNodePlayer.cpp.
| void tracktion::graph::MultiThreadedNodePlayer::ThreadPool::wait | ( | ) |
Definition at line 78 of file tracktion_MultiThreadedNodePlayer.cpp.
| void tracktion::graph::MultiThreadedNodePlayer::ThreadPool::waitForFinalNode | ( | ) |
Definition at line 112 of file tracktion_MultiThreadedNodePlayer.cpp.