CUBRID Engine  latest
HL::CPUInfo Class Reference

Architecture-independent wrapper to get number of CPUs. More...

#include <cpuinfo.h>

Collaboration diagram for HL::CPUInfo:
Collaboration graph

Public Types

enum  { PageSize = 4096UL }
 

Static Public Member Functions

static int getNumProcessors ()
 
static unsigned int getThreadId ()
 
static int computeNumProcessors ()
 

Detailed Description

Architecture-independent wrapper to get number of CPUs.

Author
Emery Berger http://www.cs.umass.edu/~emery

Definition at line 81 of file cpuinfo.h.

Member Enumeration Documentation

anonymous enum
Enumerator
PageSize 

Definition at line 85 of file cpuinfo.h.

Member Function Documentation

int HL::CPUInfo::computeNumProcessors ( void  )
inlinestatic

Definition at line 98 of file cpuinfo.h.

References NULL.

Referenced by getNumProcessors().

Here is the caller graph for this function:

static int HL::CPUInfo::getNumProcessors ( )
inlinestatic

Definition at line 87 of file cpuinfo.h.

References computeNumProcessors(), and getThreadId().

Referenced by HL::SpinLockType::onMultiprocessor().

Here is the caller graph for this function:

unsigned int HL::CPUInfo::getThreadId ( )
inlinestatic

Definition at line 131 of file cpuinfo.h.

References error(), and pid.

Referenced by getNumProcessors().

Here is the caller graph for this function:


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