Describes how many worker processes are supported by each machine and how many are free. More...
#include <locality.hh>
Public Member Functions | |
process_allocation (const std::map< uint64_t, std::pair< size_t, size_t >> &_worker_occupancy) | |
size_t | num_workers_total (const uint64_t machine) const |
size_t | num_workers_free (const uint64_t machine) const |
std::set< uint64_t > | get_machines () const |
Describes how many worker processes are supported by each machine and how many are free.
aether::process_allocation::process_allocation | ( | const std::map< uint64_t, std::pair< size_t, size_t >> & | _worker_occupancy | ) |
std::set<uint64_t> aether::process_allocation::get_machines | ( | ) | const |
size_t aether::process_allocation::num_workers_free | ( | const uint64_t | machine | ) | const |
machine | - machine id |
size_t aether::process_allocation::num_workers_total | ( | const uint64_t | machine | ) | const |
machine | - machine id |