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第33行定义。
公有成员 | |
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 | ( | ) |
在文件Parallel.cpp第15行定义。
在文件Parallel.cpp第19行定义。
~CParallel | ( | ) | [virtual] |
在文件Parallel.cpp第24行定义。
int32_t get_num_cpus | ( | ) | const |
在文件Parallel.h第40行定义。
int32_t get_num_threads | ( | ) | const |
在文件Parallel.h第61行定义。
int32_t ref | ( | ) |
在文件Parallel.h第66行定义。
int32_t ref_count | ( | ) | const |
在文件Parallel.h第72行定义。
void set_num_threads | ( | int32_t | n ) |
在文件Parallel.h第53行定义。
int32_t unref | ( | ) |
在文件Parallel.h第77行定义。