"Fossies" - the Fresh Open Source Software Archive

Member "hashcat-6.2.6/include/affinity.h" (2 Sep 2022, 465 Bytes) of package /linux/privat/hashcat-6.2.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "affinity.h" see the Fossies "Dox" file reference documentation.

    1 /**
    2  * Author......: See docs/credits.txt
    3  * License.....: MIT
    4  */
    5 
    6 #ifndef _AFFINITY_H
    7 #define _AFFINITY_H
    8 
    9 #include <stdlib.h>
   10 #include <stdarg.h>
   11 
   12 #if defined (_POSIX)
   13 #include <pthread.h>
   14 #endif // _POSIX
   15 
   16 #if defined (__APPLE__)
   17 #include <mach-o/dyld.h>
   18 #include <mach/mach.h>
   19 #include <mach/thread_policy.h>
   20 #endif // __APPLE__
   21 
   22 #if defined (_WIN)
   23 #include <windows.h>
   24 #endif // _WIN
   25 
   26 int set_cpu_affinity (hashcat_ctx_t *hashcat_ctx);
   27 
   28 #endif // _AFFINITY_H