join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::PhysicalCore Struct Reference

physical CPU core (may have multiple logical CPU). More...

#include <cpu.hpp>

Public Member Functions

int primaryThread () const noexcept
 get primary thread (first hardware thread, avoids HT).
 

Public Attributes

int id
 
int socket
 
int numa
 
std::vector< LogicalCputhreads
 

Detailed Description

physical CPU core (may have multiple logical CPU).

Member Function Documentation

◆ primaryThread()

int join::PhysicalCore::primaryThread ( ) const
inlinenoexcept

get primary thread (first hardware thread, avoids HT).

Returns
logical CPU ID.

Member Data Documentation

◆ id

int join::PhysicalCore::id

physical CPU ID

◆ numa

int join::PhysicalCore::numa

NUMA node ID

◆ socket

int join::PhysicalCore::socket

physical socket ID

◆ threads

std::vector<LogicalCpu> join::PhysicalCore::threads

logical CPUs (SMT/HT)


The documentation for this struct was generated from the following file: