mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-27 02:18:21 +00:00
37 lines
526 B
C
37 lines
526 B
C
/**
|
|
* Author......: Jens Steube <jens.steube@gmail.com>
|
|
* License.....: MIT
|
|
*/
|
|
|
|
#ifndef _AFFINITY_H
|
|
#define _AFFINITY_H
|
|
|
|
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
|
|
#ifdef _POSIX
|
|
#include <pthread.h>
|
|
#include <sys/sysctl.h>
|
|
#endif // _POSIX
|
|
|
|
#ifdef __APPLE__
|
|
#include <mach-o/dyld.h>
|
|
#include <mach/mach.h>
|
|
#endif // __APPLE__
|
|
|
|
#ifdef _WIN
|
|
#include <windows.h>
|
|
#endif // _WIN
|
|
|
|
#ifdef __APPLE__
|
|
typedef struct cpu_set
|
|
{
|
|
uint32_t count;
|
|
|
|
} cpu_set_t;
|
|
#endif
|
|
|
|
void set_cpu_affinity (char *cpu_affinity);
|
|
|
|
#endif // _AFFINITY_H
|