1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-16 03:38:19 +00:00
hashcat/include/affinity.h
jsteube 3daf0af480 Added docs/credits.txt
Added docs/team.txt
2016-09-11 22:20:15 +02:00

37 lines
539 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>
#endif // __APPLE__
#if defined (_WIN)
#include <windows.h>
#endif // _WIN
#if defined (__APPLE__)
typedef struct cpu_set
{
uint32_t count;
} cpu_set_t;
#endif
void set_cpu_affinity (char *cpu_affinity);
#endif // _AFFINITY_H