Advanced Multi-Physics (AMP)
On-Line Documentation
Namespaces | Functions
ThreadHelpers.h File Reference
#include <thread>
#include <vector>
Include dependency graph for ThreadHelpers.h:

Go to the source code of this file.

Namespaces

namespace  AMP
 
namespace  AMP::Thread
 

Functions

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



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page