27 #ifndef EMBB_MTAPI_EXECUTION_POLICY_H_ 28 #define EMBB_MTAPI_EXECUTION_POLICY_H_ 30 #include <embb/mtapi/c/mtapi.h> 31 #include <embb/mtapi/internal/cmake_config.h> 63 bool initial_affinity,
147 static const mtapi_uint_t DefaultPriority;
158 mtapi_uint_t priority_;
164 #endif // EMBB_MTAPI_EXECUTION_POLICY_H_ Definition: lock_free_mpmc_queue.h:40
mtapi_uint64_t mtapi_affinity_t
Core affinity type.
Definition: mtapi.h:350
mtapi_uint_t GetPriority() const
Returns the priority.
void RemoveWorker(mtapi_uint_t worker)
Removes affinity to a specific worker thread.
ExecutionPolicy()
Constructs the default execution policy.
unsigned int GetCoreCount() const
Returns the number of cores the policy is affine to.
Describes the execution policy of a parallel algorithm.
Definition: execution_policy.h:48
void AddWorker(mtapi_uint_t worker)
Sets affinity to a specific worker thread.
mtapi_affinity_t GetAffinity() const
Returns the affinity.
bool IsSetWorker(mtapi_uint_t worker)
Checks if affinity to a specific worker thread is set.
A Task represents a running Action of a specific Job.
Definition: task.h:41