File: cpuid.h

package info (click to toggle)
concurrentqueue 1.0.2%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,244 kB
  • sloc: cpp: 13,006; makefile: 82; ansic: 67; python: 46; sh: 18
file content (12 lines) | stat: -rw-r--r-- 331 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

namespace moodycamel
{
	static const char UNKNOWN_CPU_STRING[] = "unknown processor";
	
	// Returns a string representing the system's CPU info.
	// Assumes an x86/x64 architecture (returns UNKNOWN_CPU_STRING otherwise).
	// Returned string is valid in perpetuity.
	// Not thread safe.
	const char* getCPUString();
}