1#ifndef included_AMP_ThreadPool_ThreadHelpers
2#define included_AMP_ThreadPool_ThreadHelpers
44void setThreadAffinity( std::thread::native_handle_type thread,
const std::vector<int> &procs );
std::vector< int > getProcessAffinity()
Function to return the affinity of the current process.
void setProcessAffinity(const std::vector< int > &procs)
Function to set the affinity of the current process.
void setThreadAffinity(std::thread::native_handle_type thread, const std::vector< int > &procs)
int getNumberOfProcessors()
Function to return the number of processors available.
std::thread::native_handle_type getCurrentThread()
Return the native handle to the current thread.
int getCurrentProcessor()
Function to return the processor number that the current thread is running on.
std::vector< int > getThreadAffinity(std::thread::native_handle_type thread)