aboutsummaryrefslogtreecommitdiffstats
path: root/Affinity.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2020-09-15 08:00:00 +0200
committerDaniel Lange <DLange@git.local>2020-09-15 08:00:00 +0200
commitf80394a20254938142011855f2954b3f63fe5909 (patch)
treeb777de460977f21a6257540d6a687c86882850dc /Affinity.h
parent59eeadec918a955b40427a1b012992161050c939 (diff)
downloaddebian_htop-f80394a20254938142011855f2954b3f63fe5909.tar.gz
debian_htop-f80394a20254938142011855f2954b3f63fe5909.tar.bz2
debian_htop-f80394a20254938142011855f2954b3f63fe5909.zip
New upstream version 3.0.2upstream/3.0.2
Diffstat (limited to 'Affinity.h')
-rw-r--r--Affinity.h30
1 files changed, 6 insertions, 24 deletions
diff --git a/Affinity.h b/Affinity.h
index 3c71603..20d0047 100644
--- a/Affinity.h
+++ b/Affinity.h
@@ -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

© 2014-2024 Faster IT GmbH | imprint | privacy policy