Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/Windows/System.h')
-rwxr-xr-xCPP/Windows/System.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/CPP/Windows/System.h b/CPP/Windows/System.h
new file mode 100755
index 00000000..e1a5abac
--- /dev/null
+++ b/CPP/Windows/System.h
@@ -0,0 +1,21 @@
+// Windows/System.h
+
+#ifndef __WINDOWS_SYSTEM_H
+#define __WINDOWS_SYSTEM_H
+
+#include "..\Common\Types.h"
+
+namespace NWindows {
+namespace NSystem {
+
+inline UInt32 GetNumberOfProcessors()
+{
+ SYSTEM_INFO systemInfo;
+ GetSystemInfo(&systemInfo);
+ return (UInt32)systemInfo.dwNumberOfProcessors;
+}
+
+
+}}
+
+#endif