1
mirror of https://github.com/hashcat/hashcat synced 2024-12-09 02:13:10 +01:00
hashcat/include/affinity.h

32 lines
533 B
C
Raw Normal View History

/**
* 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>
2016-11-29 22:39:22 +01:00
#if defined (__linux__)
2016-09-07 11:24:21 +02:00
#include <sys/sysctl.h>
2016-11-29 22:39:22 +01:00
#endif // __linux__
#endif // _POSIX
#if defined (__APPLE__)
2016-09-07 11:24:21 +02:00
#include <mach-o/dyld.h>
#include <mach/mach.h>
#include <mach/thread_policy.h>
2016-09-07 11:24:21 +02:00
#endif // __APPLE__
#if defined (_WIN)
#include <windows.h>
#endif // _WIN
int set_cpu_affinity (hashcat_ctx_t *hashcat_ctx);
#endif // _AFFINITY_H