vSMC
vSMC: Scalable Monte Carlo
|
Number of threads used by algorithms. More...
#include <vsmc/thread/thread_num.hpp>
Public Member Functions | |
template<typename Range > | |
std::vector< Range > | partition (const Range &range) const |
std::size_t | thread_num () const |
std::size_t | thread_num (std::size_t num) |
Set a new number of threads, return the old number. More... | |
Static Public Member Functions | |
static ThreadNum & | instance () |
Number of threads used by algorithms.
Definition at line 42 of file thread_num.hpp.
|
inlinestatic |
Definition at line 46 of file thread_num.hpp.
|
inline |
Definition at line 65 of file thread_num.hpp.
|
inline |
Definition at line 53 of file thread_num.hpp.
|
inline |
Set a new number of threads, return the old number.
Definition at line 56 of file thread_num.hpp.