#pragma once #include #include #include #include #include "Crypto.h" #include "Identity.h" #include "common/key.hpp" #include #include #include #include #ifdef _WIN32 #include #endif // MARCO #ifndef _WIN32 #define INIT_CPUS(count_cpu){\ cpu = CPU_ALLOC(count_cpu-1);\ if (cpu == NULL) {\ std::cout << "CPU_ALLOC error" << std::endl;\ return 1;\ }\ } #else #warning don't testing #define INIT_CPUS(count_cpu){\ HANDLE process;\ DWORD_PTR processAffinityMask;\ for(int i=0; i