You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hashcat/include/affinity.h

37 lines
554 B

/**
* Author......: Jens Steube <jens.steube@gmail.com>
* 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