public enum Affinity extends Enum<Affinity>
Modifier and Type | Method and Description |
---|---|
static AffinityLock |
acquireCore() |
static AffinityLock |
acquireCore(boolean bind) |
static AffinityLock |
acquireLock() |
static AffinityLock |
acquireLock(boolean bind) |
static BitSet |
getAffinity() |
static IAffinity |
getAffinityImpl() |
static int |
getCpu() |
static int |
getThreadId() |
static boolean |
isJNAAvailable() |
static void |
resetToBaseAffinity() |
static void |
setAffinity(BitSet affinity) |
static void |
setAffinity(int cpu) |
static void |
setThreadId() |
static Affinity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Affinity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Affinity[] values()
for (Affinity c : Affinity.values()) System.out.println(c);
public static Affinity valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static IAffinity getAffinityImpl()
public static BitSet getAffinity()
public static void setAffinity(int cpu)
public static void setAffinity(BitSet affinity)
public static int getCpu()
public static int getThreadId()
public static void setThreadId()
public static boolean isJNAAvailable()
public static AffinityLock acquireLock()
public static AffinityLock acquireCore()
public static AffinityLock acquireLock(boolean bind)
public static AffinityLock acquireCore(boolean bind)
public static void resetToBaseAffinity()
Copyright © 2018. All rights reserved.