1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-16 19:58:25 +00:00
hashcat/include/affinity.h
2016-10-08 23:38:34 +02:00

30 lines
489 B
C

/**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#ifndef _AFFINITY_H
#define _AFFINITY_H
#include <stdlib.h>
#include <stdarg.h>
#if defined (_POSIX)
#include <pthread.h>
#include <sys/sysctl.h>
#endif // _POSIX
#if defined (__APPLE__)
#include <mach-o/dyld.h>
#include <mach/mach.h>
#include <mach/thread_policy.h>
#endif // __APPLE__
#if defined (_WIN)
#include <windows.h>
#endif // _WIN
int set_cpu_affinity (hashcat_ctx_t *hashcat_ctx);
#endif // _AFFINITY_H