public class MThread extends MObject implements Runnable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MThread.ThreadContainer |
| Modifier and Type | Field and Description |
|---|---|
protected static Log |
log |
protected String |
name |
protected Runnable |
task |
protected MThread.ThreadContainer |
tc |
| Constructor and Description |
|---|
MThread() |
MThread(Runnable _task) |
MThread(Runnable _task,
String _name) |
MThread(String _name) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
int |
getPriority() |
protected Runnable |
getTask() |
void |
run() |
void |
setName(String _name) |
void |
setPriority(int _p) |
static void |
sleep(long _millisec)
Sleeps _millisec milliseconds.
|
void |
start() |
void |
stop() |
void |
taskError(Throwable t) |
base, base, createBase, forkBase, installBase, isBase, leaveBase, toStringprotected static Log log
protected Runnable task
protected String name
protected MThread.ThreadContainer tc
public MThread()
public MThread(String _name)
public MThread(Runnable _task)
protected Runnable getTask()
public void start()
public void setName(String _name)
public String getName()
public void setPriority(int _p)
public int getPriority()
public void stop()
public static void sleep(long _millisec)
public void taskError(Throwable t)
Copyright © 2014. All rights reserved.