MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier and Type | Method and Description |
---|---|
static Object |
getResource(String key)
This calls getResource() for the current running thread.
|
static Object |
getResource(Thread t,
String key) |
static boolean |
inSystemThread()
Returns the same value as Vm.inSystemThread().
|
static void |
nap(long millis)
Puts the current thread to sleep while catching and discarding any
InterruptedExceptions.
|
static void |
putResource(String key,
Object data)
This calls putResource() for the current running thread.
|
static void |
putResource(Thread t,
String key,
Object data) |
static void |
setupResourceFor(Thread t,
int initialCapacity,
float loadFactor) |
static void |
setupResources(int initialCapacity,
float loadFactor)
This calls setupResources() for the current running thread.
|
static void |
setupResourceStore(int initialCapacity,
float loadFactor) |
static void |
yield(long intervalInMillis)
Deprecated.
|
currentThread, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield
public mThread()
public mThread(Runnable r)
public static void nap(long millis)
millis
- the length of time to sleep for.public static void yield(long intervalInMillis)
intervalInMillis
- the number of milliseconds between yields.public static boolean inSystemThread()
Vm.inSystemThread()
public static void setupResourceStore(int initialCapacity, float loadFactor)
public static void setupResourceFor(Thread t, int initialCapacity, float loadFactor)
public static void setupResources(int initialCapacity, float loadFactor)
public static void putResource(String key, Object data)