piranha  0.10
Static Public Member Functions | List of all members
piranha::runtime_info Class Reference

Runtime information. More...

#include <piranha/runtime_info.hpp>

Static Public Member Functions

static unsigned get_hardware_concurrency ()
 Hardware concurrency. More...
 
static unsigned get_cache_line_size ()
 Size of the data cache line. More...
 

Detailed Description

Runtime information.

This class allows to query information about the runtime environment.

Definition at line 87 of file runtime_info.hpp.

Member Function Documentation

◆ get_cache_line_size()

static unsigned piranha::runtime_info::get_cache_line_size ( )
inlinestatic

Size of the data cache line.

Returns
data cache line size (in bytes), or 0 if the value cannot be determined.

Definition at line 133 of file runtime_info.hpp.

◆ get_hardware_concurrency()

static unsigned piranha::runtime_info::get_hardware_concurrency ( )
inlinestatic

Hardware concurrency.

Returns
number of concurrent threads supported by the environment (typically equal to the number of logical CPU cores), or 0 if the detection fails.

Definition at line 96 of file runtime_info.hpp.


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