Torque 3D 3.7
SFXThreadPool Class
class SFXThreadPool : public ThreadPool, public ManagedSingleton< SFXThreadPool >;

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.

Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!