diff options
author | Daniel Lange <DLange@git.local> | 2020-09-15 08:00:01 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2020-09-15 08:00:01 +0200 |
commit | 8e8165109aca4e3c2a8558653df088d674061c78 (patch) | |
tree | d68c91ced3a78c65be9ae262ea84676e73cac68d /Affinity.h | |
parent | e9302ddfaeaad62b12bdd352958fb194a26f3c74 (diff) | |
parent | f80394a20254938142011855f2954b3f63fe5909 (diff) | |
download | debian_htop-8e8165109aca4e3c2a8558653df088d674061c78.tar.gz debian_htop-8e8165109aca4e3c2a8558653df088d674061c78.tar.bz2 debian_htop-8e8165109aca4e3c2a8558653df088d674061c78.zip |
Update upstream source from tag 'upstream/3.0.2'
Update to upstream version '3.0.2'
with Debian dir 26e1b8d7612e50e81b8325506c1ce54f71cba270
Diffstat (limited to 'Affinity.h')
-rw-r--r-- | Affinity.h | 30 |
1 files changed, 6 insertions, 24 deletions
@@ -1,5 +1,3 @@ -/* Do not edit this file. It was automatically generated. */ - #ifndef HEADER_Affinity #define HEADER_Affinity /* @@ -10,15 +8,6 @@ Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ -#ifdef HAVE_LIBHWLOC -#if __linux__ -#define HTOP_HWLOC_CPUBIND_FLAG HWLOC_CPUBIND_THREAD -#else -#define HTOP_HWLOC_CPUBIND_FLAG HWLOC_CPUBIND_PROCESS -#endif -#elif HAVE_LINUX_AFFINITY -#endif - #include "Process.h" #include "ProcessList.h" @@ -29,24 +18,17 @@ typedef struct Affinity_ { int* cpus; } Affinity; +Affinity* Affinity_new(ProcessList* pl); -extern Affinity* Affinity_new(ProcessList* pl); - -extern void Affinity_delete(Affinity* this); - -extern void Affinity_add(Affinity* this, int id); - -#ifdef HAVE_LIBHWLOC - -extern Affinity* Affinity_get(Process* proc, ProcessList* pl); +void Affinity_delete(Affinity* this); -extern bool Affinity_set(Process* proc, Arg arg); +void Affinity_add(Affinity* this, int id); -#elif HAVE_LINUX_AFFINITY +#if defined(HAVE_LIBHWLOC) || defined(HAVE_LINUX_AFFINITY) -extern Affinity* Affinity_get(Process* proc, ProcessList* pl); +Affinity* Affinity_get(Process* proc, ProcessList* pl); -extern bool Affinity_set(Process* proc, Arg arg); +bool Affinity_set(Process* proc, Arg arg); #endif |