51#ifndef DOXYGEN_SHOULD_SKIP_THIS
63 _max_memory(max_memory * 1048576.0) {
64 if (_max_memory <= 0.0) _max_memory = 0.0;
67 GUM_CONSTRUCTOR(Scheduler);
71 Scheduler::Scheduler(
const Scheduler& from) :
72 ThreadNumberManager(from), _max_memory(from._max_memory) {
74 GUM_CONS_CPY(Scheduler);
78 Scheduler::Scheduler(Scheduler&& from) :
79 ThreadNumberManager(
std::move(from)), _max_memory(from._max_memory) {
81 GUM_CONS_MOV(Scheduler);
85 Scheduler::~Scheduler() {
87 GUM_DESTRUCTOR(Scheduler);
91 Scheduler& Scheduler::operator=(
const Scheduler& from) {
93 ThreadNumberManager::operator=(from);
94 _max_memory = from._max_memory;
101 Scheduler& Scheduler::operator=(Scheduler&& from) {
103 ThreadNumberManager::operator=(std::move(from));
104 _max_memory = from._max_memory;
Scheduler(Size nb_threads=0, double max_megabyte_memory=0.0)
default constructor
A class to manage the number of threads to use in an algorithm.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
gum is the global namespace for all aGrUM entities
the common interface of all the schedulers
the common interface of all the schedulers