Class Parallel provides helper functions for multithreading.
For example it can be used to determine the number of CPU cores in your computer and is the place where you define the number of CPUs that shall be used in computations.
Definition at line 31 of file Parallel.h.
Public Member Functions | |
CParallel () | |
CParallel (const CParallel &orig) | |
virtual | ~CParallel () |
int32_t | get_num_cpus () const |
void | set_num_threads (int32_t n) |
int32_t | get_num_threads () const |
int32_t | ref () |
int32_t | ref_count () const |
int32_t | unref () |
CParallel::CParallel | ( | ) |
Definition at line 13 of file Parallel.cpp.
CParallel::CParallel | ( | const CParallel & | orig | ) |
Definition at line 17 of file Parallel.cpp.
CParallel::~CParallel | ( | ) | [virtual] |
Definition at line 22 of file Parallel.cpp.
int32_t CParallel::get_num_cpus | ( | ) | const |
Definition at line 38 of file Parallel.h.
int32_t CParallel::get_num_threads | ( | ) | const |
Definition at line 59 of file Parallel.h.
int32_t CParallel::ref | ( | ) |
Definition at line 64 of file Parallel.h.
int32_t CParallel::ref_count | ( | ) | const |
Definition at line 70 of file Parallel.h.
void CParallel::set_num_threads | ( | int32_t | n | ) |
Definition at line 51 of file Parallel.h.
int32_t CParallel::unref | ( | ) |
Definition at line 75 of file Parallel.h.