/****************************************************************************** Copyright(C):2015~2018 hzleaper FileName:baseFunction.h Author:zhikun wu Email:zk.wu@hzleaper.com Tools:vs2010 pc on company Created:2015/04/08 History:8:4:2015 13:04 *******************************************************************************/ #ifndef __BASE_FUNCTION_H_20150408 #define __BASE_FUNCTION_H_20150408 #include "sysInclude.h" namespace SYS_F { int GetCpus() { #if defined(Q_OS_WIN) || defined(WIN32) || defined(WIN64) SYSTEM_INFO sysInfo; GetSystemInfo(&sysInfo); return sysInfo.dwNumberOfProcessors; #else return 0; #endif } } namespace TP_F { } #endif