public enum NativeAffinity extends Enum<NativeAffinity> implements IAffinity
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
static boolean |
LOADED |
Modifier and Type | Method and Description |
---|---|
BitSet |
getAffinity() |
int |
getCpu() |
int |
getProcessId() |
int |
getThreadId() |
void |
setAffinity(BitSet affinity) |
static NativeAffinity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NativeAffinity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NativeAffinity INSTANCE
public static NativeAffinity[] values()
for (NativeAffinity c : NativeAffinity.values()) System.out.println(c);
public static NativeAffinity 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 BitSet getAffinity()
getAffinity
in interface IAffinity
public void setAffinity(BitSet affinity)
setAffinity
in interface IAffinity
affinity
- sets affinity mask of current thread to specified valuepublic int getCpu()
public int getProcessId()
getProcessId
in interface IAffinity
public int getThreadId()
getThreadId
in interface IAffinity
Copyright © 2018. All rights reserved.