27 #ifndef EMBB_BASE_C_CORE_SET_H_ 28 #define EMBB_BASE_C_CORE_SET_H_ 61 typedef struct embb_core_set_t {
89 embb_core_set_t* core_set,
108 embb_core_set_t* core_set,
110 unsigned int core_number
126 embb_core_set_t* core_set,
128 unsigned int core_number
143 const embb_core_set_t* core_set,
145 unsigned int core_number
160 embb_core_set_t* set1,
162 const embb_core_set_t* set2
177 embb_core_set_t* set1,
179 const embb_core_set_t* set2
192 const embb_core_set_t* core_set
opaque_type embb_core_set_t
Opaque type representing a set of processor cores.
Definition: core_set.h:59
void embb_core_set_union(embb_core_set_t *set1, const embb_core_set_t *set2)
Computes the union of core set1 and set2.
unsigned int embb_core_count_available()
Returns the number of available processor cores.
void embb_core_set_init(embb_core_set_t *core_set, int initializer)
Initializes the specified core set.
void embb_core_set_add(embb_core_set_t *core_set, unsigned int core_number)
Adds a core to the specified set.
int embb_core_set_contains(const embb_core_set_t *core_set, unsigned int core_number)
Determines whether a core is contained in the specified set.
void embb_core_set_intersection(embb_core_set_t *set1, const embb_core_set_t *set2)
Computes the intersection of core set1 and set2.
unsigned int embb_core_set_count(const embb_core_set_t *core_set)
Returns the number of cores contained in the specified set.
void embb_core_set_remove(embb_core_set_t *core_set, unsigned int core_number)
Removes a core from the specified set.