|
qb
2.0.0.0
C++17 Actor Framework
|
Manages a set of core identifiers. More...
#include <qb/coreset.h>
Public Member Functions | |
| CoreSet (CoreIdSet const &set) noexcept | |
| Construct a CoreSet with a specific set of cores. | |
| CoreId | resolve (std::size_t id) const noexcept |
| Resolve a core ID to its index in the set. | |
| const CoreIdSet & | raw () const noexcept |
| Get the raw set of core IDs. | |
| uint32_t | getSize () const noexcept |
| Get the size of the core set. | |
| uint32_t | getNbCore () const noexcept |
| Get the number of cores in the set. | |
Static Public Member Functions | |
| static CoreSet | build (uint32_t nb_core=std::thread::hardware_concurrency()) noexcept |
| Build a CoreSet with a specified number of cores. | |
Manages a set of core identifiers.
CoreSet provides functionality to manage and manipulate sets of core identifiers. It is used to specify which cores should be used for actor execution and communication.
|
explicitnoexcept |
Construct a CoreSet with a specific set of cores.
| set | Set of core IDs to include |
|
staticnodiscardnoexcept |
Build a CoreSet with a specified number of cores.
| nb_core | Number of cores to include (defaults to hardware concurrency) |
Creates a CoreSet containing sequential core IDs from 0 to nb_core-1. If nb_core is not specified, it uses the number of hardware threads available.
|
nodiscardnoexcept |
Resolve a core ID to its index in the set.
| id | Core ID to resolve |
|
nodiscardnoexcept |
Get the raw set of core IDs.
|
nodiscardnoexcept |
Get the size of the core set.
|
nodiscardnoexcept |
Get the number of cores in the set.