27 #ifndef EMBB_BASE_CORE_SET_H_ 28 #define EMBB_BASE_CORE_SET_H_ 30 #include <embb/base/c/core_set.h> 140 unsigned int Count()
const;
211 #endif // EMBB_BASE_CORE_SET_H_ Definition: lock_free_mpmc_queue.h:40
opaque_type embb_core_set_t
Opaque type representing a set of processor cores.
Definition: core_set.h:59
Represents a set of processor cores, used to set thread-to-core affinities.
Definition: core_set.h:58
bool IsContained(unsigned int core) const
Checks whether the specified core is included in the set.
void Remove(unsigned int core)
Removes one core from the core set.
void Reset(bool value)
Resets the core set according to the specified value.
CoreSet & operator|=(const CoreSet &rhs)
Unites this core set with the specified one an overwrites this core set.
CoreSet & operator=(const CoreSet &to_assign)
Assigns an existing core set.
embb_core_set_t const & GetInternal() const
Provides access to internal representation to use it with C API.
Definition: core_set.h:192
CoreSet operator|(const CoreSet &rhs) const
Unites this core set with the specified one.
CoreSet operator&(const CoreSet &rhs) const
Intersects this core set with the specified one.
CoreSet & operator&=(const CoreSet &rhs)
Intersects this core set with the specified one and overwrites this core set.
Represents a thread of execution.
Definition: thread.h:59
CoreSet()
Constructs an empty core set.
static unsigned int CountAvailable()
Returns the number of available processor cores.
void Add(unsigned int core)
Adds one core to the core set.
unsigned int Count() const
Counts the number of cores in the set.