Introduced OpenThreads::SetProcessorAffinityMaskOfCurrentThread(unsigned long cpumask) and Threads::setProcessorAffinityMask(unsigned long cpumask) to allow finer grained control over the CPU affinity.
This commit is contained in:
@@ -53,7 +53,7 @@ private:
|
||||
nextId++;
|
||||
threadPriority = Thread::THREAD_PRIORITY_DEFAULT;
|
||||
threadPolicy = Thread::THREAD_SCHEDULE_DEFAULT;
|
||||
cpunum = -1;
|
||||
cpumask = ~0ul;
|
||||
};
|
||||
|
||||
virtual ~PThreadPrivateData() {};
|
||||
@@ -81,7 +81,7 @@ private:
|
||||
|
||||
volatile int uniqueId;
|
||||
|
||||
volatile int cpunum;
|
||||
volatile unsigned long cpumask;
|
||||
|
||||
|
||||
static int nextId;
|
||||
|
||||
Reference in New Issue
Block a user