Torque3D Documentation / _generateds / SFXInternal::SFXThreadPool

SFXInternal::SFXThreadPool

Engine/source/sfx/sfxInternal.h

Thread pool for sound I/O.

More...

Public Types

Parent 

Public Functions

Create a ThreadPool called "SFX" with two threads.

Public Static Functions

Detailed Description

Thread pool for sound I/O.

We are using a separate pool for sound packets in order to be able to submit packet items from different threads. This would violate the invariant of the global thread pool that only the main thread is feeding the queues.

Note that this also means that only at certain very well-defined points is it possible to safely flush the work item queue on this pool.

note:

Don't use this directly but rather use THREAD_POOL() instead. This way, the sound code may be easily switched to using a common pool later on.

Public Types

typedef ThreadPool Parent 

Public Functions

SFXThreadPool()

Create a ThreadPool called "SFX" with two threads.

Public Static Functions

getSingletonName()