Package org.teavm.classlib.java.lang
Class TThread
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.lang.TThread
- All Implemented Interfaces:
TRunnable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
static TThread
long
getId()
getName()
final int
static boolean
void
static boolean
boolean
isAlive()
final boolean
isDaemon()
boolean
final void
join()
final void
join
(long millis) final void
join
(long millis, int nanos) void
run()
final void
setDaemon
(boolean daemon) static void
void
final void
setPriority
(int newPriority) void
setUncaughtExceptionHandler
(TThread.UncaughtExceptionHandler uncaughtExceptionHandler) static void
sleep
(long millis) void
start()
static void
yield()
-
Field Details
-
interruptHandler
-
key
-
-
Constructor Details
-
TThread
public TThread() -
TThread
-
TThread
-
TThread
-
-
Method Details
-
start
public void start() -
run
public void run() -
currentThread
-
getName
-
setName
-
isDaemon
public final boolean isDaemon() -
setDaemon
public final void setDaemon(boolean daemon) -
join
- Throws:
InterruptedException
-
join
- Throws:
InterruptedException
-
join
- Throws:
InterruptedException
-
yield
public static void yield() -
interrupt
public void interrupt() -
interrupted
public static boolean interrupted() -
isInterrupted
public boolean isInterrupted() -
isAlive
public boolean isAlive() -
activeCount
public static int activeCount() -
getId
public long getId() -
holdsLock
-
sleep
- Throws:
TInterruptedException
-
setPriority
public final void setPriority(int newPriority) -
getPriority
public final int getPriority() -
getStackTrace
-
getContextClassLoader
-
getUncaughtExceptionHandler
-
setUncaughtExceptionHandler
-
getDefaultUncaughtExceptionHandler
-
setDefaultUncaughtExceptionHandler
-