2016-09-07 09:16:31 +00:00
|
|
|
/**
|
2016-09-11 20:20:15 +00:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-07 09:16:31 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2023-01-30 14:41:12 +00:00
|
|
|
#ifndef HC_AFFINITY_H
|
|
|
|
#define HC_AFFINITY_H
|
2016-09-07 09:16:31 +00:00
|
|
|
|
|
|
|
#include <stdlib.h>
|
2016-09-07 09:42:05 +00:00
|
|
|
#include <stdarg.h>
|
2016-09-07 09:16:31 +00:00
|
|
|
|
2016-09-07 20:29:57 +00:00
|
|
|
#if defined (_POSIX)
|
2016-09-07 09:16:31 +00:00
|
|
|
#include <pthread.h>
|
|
|
|
#endif // _POSIX
|
|
|
|
|
2016-09-07 20:29:57 +00:00
|
|
|
#if defined (__APPLE__)
|
2016-09-07 09:24:21 +00:00
|
|
|
#include <mach-o/dyld.h>
|
|
|
|
#include <mach/mach.h>
|
2016-10-08 21:38:34 +00:00
|
|
|
#include <mach/thread_policy.h>
|
2016-09-07 09:24:21 +00:00
|
|
|
#endif // __APPLE__
|
|
|
|
|
2016-09-07 20:29:57 +00:00
|
|
|
#if defined (_WIN)
|
2016-09-07 09:16:31 +00:00
|
|
|
#include <windows.h>
|
|
|
|
#endif // _WIN
|
|
|
|
|
2016-10-08 21:38:34 +00:00
|
|
|
int set_cpu_affinity (hashcat_ctx_t *hashcat_ctx);
|
2016-09-07 09:16:31 +00:00
|
|
|
|
2023-01-30 14:41:12 +00:00
|
|
|
#endif // HC_AFFINITY_H
|