#include <e2sarAffinity.hpp>
 | 
| static result< int >  | setProcess (const std::vector< int > &cores) noexcept | 
|   | 
| static result< int >  | setThread (int core) noexcept | 
|   | 
| static result< int >  | setThreadXOR (const std::vector< int > &cores) noexcept | 
|   | 
| static result< int >  | setNUMABind (int node) noexcept | 
|   | 
Static methods to manipuate affinity of memory and CPUs 
 
◆ setNUMABind()
  
  
      
        
          | result< int > e2sar::Affinity::setNUMABind  | 
          ( | 
          int |           node | ) | 
           | 
         
       
   | 
  
staticnoexcept   | 
  
 
Bind process memory allocation to specified NUMA node Error out if node is invalid or NUMA not supported 
 
 
◆ setProcess()
  
  
      
        
          | result< int > e2sar::Affinity::setProcess  | 
          ( | 
          const std::vector< int > & |           cores | ) | 
           | 
         
       
   | 
  
staticnoexcept   | 
  
 
Set the affinity of the entire process to the cores in the vector 
 
 
◆ setThread()
  
  
      
        
          | result< int > e2sar::Affinity::setThread  | 
          ( | 
          int |           core | ) | 
           | 
         
       
   | 
  
staticnoexcept   | 
  
 
Set calling thread affinity to specified core 
 
 
◆ setThreadXOR()
  
  
      
        
          | result< int > e2sar::Affinity::setThreadXOR  | 
          ( | 
          const std::vector< int > & |           cores | ) | 
           | 
         
       
   | 
  
staticnoexcept   | 
  
 
Set calling thread affinity to exclude named cores 
 
 
The documentation for this class was generated from the following files: