mirror of
https://github.com/hashcat/hashcat
synced 2025-03-22 21:14:22 +01:00
30 lines
396 B
C
30 lines
396 B
C
![]() |
/**
|
||
|
* Author......: Jens Steube <jens.steube@gmail.com>
|
||
|
* License.....: MIT
|
||
|
*/
|
||
|
|
||
|
#ifndef _AFFINITY_H
|
||
|
#define _AFFINITY_H
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
#ifdef _POSIX
|
||
|
#include <pthread.h>
|
||
|
#endif // _POSIX
|
||
|
|
||
|
#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
|