1 /** 2 * Author......: See docs/credits.txt 3 * License.....: MIT 4 */ 5 6 #ifndef _AFFINITY_H 7 #define _AFFINITY_H 8 9 #include <stdlib.h> 10 #include <stdarg.h> 11 12 #if defined (_POSIX) 13 #include <pthread.h> 14 #endif // _POSIX 15 16 #if defined (__APPLE__) 17 #include <mach-o/dyld.h> 18 #include <mach/mach.h> 19 #include <mach/thread_policy.h> 20 #endif // __APPLE__ 21 22 #if defined (_WIN) 23 #include <windows.h> 24 #endif // _WIN 25 26 int set_cpu_affinity (hashcat_ctx_t *hashcat_ctx); 27 28 #endif // _AFFINITY_H