#include <threading.h>
◆ ThreadPool()
| colmap::ThreadPool::ThreadPool |
( |
const int |
num_threads = kMaxNumThreads | ) |
|
|
explicit |
◆ ~ThreadPool()
| colmap::ThreadPool::~ThreadPool |
( |
| ) |
|
◆ AddTask()
template<class func_t , class... args_t>
| auto colmap::ThreadPool::AddTask |
( |
func_t && |
f, |
|
|
args_t &&... |
args |
|
) |
| -> std::future<typename std::result_of<func_t(args_t...)>::type> |
◆ GetThreadId()
| std::thread::id colmap::ThreadPool::GetThreadId |
( |
| ) |
const |
◆ GetThreadIndex()
| int colmap::ThreadPool::GetThreadIndex |
( |
| ) |
|
◆ NumThreads()
| size_t colmap::ThreadPool::NumThreads |
( |
| ) |
const |
|
inline |
◆ Stop()
| void colmap::ThreadPool::Stop |
( |
| ) |
|
◆ Wait()
| void colmap::ThreadPool::Wait |
( |
| ) |
|
◆ kMaxNumThreads
| const int colmap::ThreadPool::kMaxNumThreads = -1 |
|
static |
The documentation for this class was generated from the following files: