tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tracktion::graph::MultiThreadedNodePlayer::ThreadPool Class Reference

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.
 

Detailed Description

Definition at line 25 of file tracktion_MultiThreadedNodePlayer.cpp.

Constructor & Destructor Documentation

◆ ThreadPool()

tracktion::graph::MultiThreadedNodePlayer::ThreadPool::ThreadPool ( MultiThreadedNodePlayer p)

Definition at line 29 of file tracktion_MultiThreadedNodePlayer.cpp.

Member Function Documentation

◆ clearThreads()

void tracktion::graph::MultiThreadedNodePlayer::ThreadPool::clearThreads ( )

Definition at line 48 of file tracktion_MultiThreadedNodePlayer.cpp.

◆ createThreads()

void tracktion::graph::MultiThreadedNodePlayer::ThreadPool::createThreads ( size_t  numThreads)

Definition at line 34 of file tracktion_MultiThreadedNodePlayer.cpp.

◆ process()

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.

◆ resetExitSignal()

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.

◆ shouldExit()

bool tracktion::graph::MultiThreadedNodePlayer::ThreadPool::shouldExit ( ) const

Returns true if all the threads should exit.

Definition at line 131 of file tracktion_MultiThreadedNodePlayer.cpp.

◆ shouldWait()

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.

◆ signalAll()

void tracktion::graph::MultiThreadedNodePlayer::ThreadPool::signalAll ( )

Definition at line 68 of file tracktion_MultiThreadedNodePlayer.cpp.

◆ signalOne()

void tracktion::graph::MultiThreadedNodePlayer::ThreadPool::signalOne ( )

Definition at line 58 of file tracktion_MultiThreadedNodePlayer.cpp.

◆ signalShouldExit()

void tracktion::graph::MultiThreadedNodePlayer::ThreadPool::signalShouldExit ( )

Signals the pool that all the threads should exit.

Definition at line 118 of file tracktion_MultiThreadedNodePlayer.cpp.

◆ wait()

void tracktion::graph::MultiThreadedNodePlayer::ThreadPool::wait ( )

Definition at line 78 of file tracktion_MultiThreadedNodePlayer.cpp.

◆ waitForFinalNode()

void tracktion::graph::MultiThreadedNodePlayer::ThreadPool::waitForFinalNode ( )

Definition at line 112 of file tracktion_MultiThreadedNodePlayer.cpp.


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