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.
在文件 Parallel.h 第 27 行定义.
Public 成员函数 | |
Parallel () | |
Parallel (const Parallel &orig) | |
virtual | ~Parallel () |
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 () |
Parallel | ( | ) |
constructor
在文件 Parallel.cpp 第 26 行定义.
copy constructor
在文件 Parallel.cpp 第 32 行定义.
|
virtual |
destructor
在文件 Parallel.cpp 第 38 行定义.
int32_t get_num_cpus | ( | ) | const |
int32_t get_num_threads | ( | ) | const |
int32_t ref | ( | ) |
int32_t ref_count | ( | ) | const |
void set_num_threads | ( | int32_t | n | ) |
int32_t unref | ( | ) |