GestureRecognitionToolkit
Version: 0.1.0
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
|
Public Member Functions | |
ThreadPool () | |
ThreadPool (const unsigned int numThreads) | |
~ThreadPool () | |
Static Public Member Functions | |
static unsigned int | getThreadPoolSize () |
static bool | setThreadPoolSize (const unsigned int threadPoolSize) |
Definition at line 50 of file ThreadPool.h.
ThreadPool::ThreadPool | ( | ) |
Default Constructor. If this constructor is used, the number of threads will automatically be set to the current thread pool size.
Definition at line 11 of file ThreadPool.cpp.
ThreadPool::ThreadPool | ( | const unsigned int | numThreads | ) |
If this constructor is used, the number of threads will be set to the numThreads value.
const | unsigned int numThreads: sets the number of threads in the thread pool. |
Definition at line 19 of file ThreadPool.cpp.
ThreadPool::~ThreadPool | ( | ) |
Default Destructor. Waits for all threads to finish their current tasks.
Definition at line 28 of file ThreadPool.cpp.
|
static |
This function returns the current thread limit. This defaults to the number of threads set by std::thread::hardware_concurrency(), but the user can override this value if needed using the setThreadLimit(...) function.
Definition at line 77 of file ThreadPool.cpp.
|
static |
This function sets the current thread limit. This defaults to the number of threads set by std::thread::hardware_concurrency(), but the user can override this value using this function.
Definition at line 85 of file ThreadPool.cpp.