equal
deleted
inserted
replaced
41 static const size_t CPU_DETAILED_DESC_BUF_SIZE = 4096; |
41 static const size_t CPU_DETAILED_DESC_BUF_SIZE = 4096; |
42 |
42 |
43 static int _no_of_threads; |
43 static int _no_of_threads; |
44 static int _no_of_cores; |
44 static int _no_of_cores; |
45 static int _no_of_sockets; |
45 static int _no_of_sockets; |
|
46 static bool _initialized; |
46 static char _cpu_name[CPU_TYPE_DESC_BUF_SIZE]; |
47 static char _cpu_name[CPU_TYPE_DESC_BUF_SIZE]; |
47 static char _cpu_desc[CPU_DETAILED_DESC_BUF_SIZE]; |
48 static char _cpu_desc[CPU_DETAILED_DESC_BUF_SIZE]; |
48 |
49 |
49 static bool initialize_cpu_information(void); |
50 static void initialize_cpu_information(void); |
50 |
51 |
51 public: |
52 public: |
52 |
53 |
53 static int number_of_threads(void); |
54 static int number_of_threads(void); |
54 static int number_of_cores(void); |
55 static int number_of_cores(void); |