summaryrefslogtreecommitdiffstats
path: root/Process.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2011-09-24 00:30:47 +0000
committerHisham Muhammad <hisham@gobolinux.org>2011-09-24 00:30:47 +0000
commitec17b7029a5f5f2e42d66380762ab24fa5174fc4 (patch)
tree39de052be8fcdbb1a58150eedde74bfbc0d5b92c /Process.h
parentd07b043ee07caa5da9e93a5a2ca9165ff98f85d7 (diff)
Convert affinity control from the deprecated PLPA to HWLOC
Diffstat (limited to 'Process.h')
-rw-r--r--Process.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Process.h b/Process.h
index ec0855a0..64558681 100644
--- a/Process.h
+++ b/Process.h
@@ -9,12 +9,12 @@ Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
-#define _GNU_SOURCE
#include "ProcessList.h"
#include "Object.h"
#include "CRT.h"
#include "String.h"
#include "RichString.h"
+#include "Affinity.h"
#include "debug.h"
@@ -32,8 +32,8 @@ in the source distribution for its full text.
#include <sched.h>
#include <time.h>
-#ifdef HAVE_PLPA
-#include <plpa.h>
+#ifdef HAVE_HWLOC
+#include <hwloc/linux.h>
#endif
// This works only with glibc 2.1+. On earlier versions
@@ -193,10 +193,10 @@ void Process_toggleTag(Process* this);
bool Process_setPriority(Process* this, int priority);
-#ifdef HAVE_PLPA
-unsigned long Process_getAffinity(Process* this);
+#ifdef HAVE_HWLOC
+Affinity* Process_getAffinity(Process* this);
-bool Process_setAffinity(Process* this, unsigned long mask);
+bool Process_setAffinity(Process* this, Affinity* affinity);
#endif
void Process_sendSignal(Process* this, int sgn);

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