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 33 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 | ( | ) |
Definition at line 15 of file Parallel.cpp.
Definition at line 19 of file Parallel.cpp.
~Parallel | ( | ) | [virtual] |
Definition at line 24 of file Parallel.cpp.
int32_t get_num_cpus | ( | ) | const |
Definition at line 40 of file Parallel.h.
int32_t get_num_threads | ( | ) | const |
Definition at line 61 of file Parallel.h.
int32_t ref | ( | ) |
Definition at line 66 of file Parallel.h.
int32_t ref_count | ( | ) | const |
Definition at line 72 of file Parallel.h.
void set_num_threads | ( | int32_t | n | ) |
Definition at line 53 of file Parallel.h.
int32_t unref | ( | ) |
Definition at line 77 of file Parallel.h.