MultiThreadedVectorProcessor< T > Class Template Referenceabstract
#include <ThreadPool.h>
Public Member Functions | |
MultiThreadedVectorProcessor (const std::vector< T * > &v) | |
virtual | ~MultiThreadedVectorProcessor () |
void | Start (size_t numThreads) |
void | Stop () |
void | ProcessVectorContents () |
void | Run () |
virtual void | Work (T *)=0 |
Protected Attributes | |
std::atomic< size_t > | m_NextIdx |
std::atomic< size_t > | m_NumComplete |
const std::vector< T * > & | m_Vector |
bool | m_Stop |
std::mutex | m_Mutex |
std::vector< std::thread > | m_Threads |
Constructor & Destructor Documentation
◆ MultiThreadedVectorProcessor()
template<typename T >
|
inline |
◆ ~MultiThreadedVectorProcessor()
template<typename T >
|
inlinevirtual |
Member Function Documentation
◆ ProcessVectorContents()
template<typename T >
|
inline |
◆ Run()
template<typename T >
|
inline |
◆ Start()
template<typename T >
|
inline |
◆ Stop()
template<typename T >
|
inline |
◆ Work()
template<typename T >
|
pure virtual |
Member Data Documentation
◆ m_Mutex
template<typename T >
|
protected |
◆ m_NextIdx
template<typename T >
|
protected |
◆ m_NumComplete
template<typename T >
|
protected |
◆ m_Stop
template<typename T >
|
protected |
◆ m_Threads
template<typename T >
|
protected |
◆ m_Vector
template<typename T >
|
protected |