SHOGUN
4.2.0
|
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 27 of file Parallel.h.
Public Member Functions | |
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
Definition at line 29 of file Parallel.cpp.
copy constructor
Definition at line 39 of file Parallel.cpp.
|
virtual |
destructor
Definition at line 49 of file Parallel.cpp.
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 | ( | ) |