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 intstatic TThreadlonggetId()getName()final intstatic booleanvoidstatic booleanbooleanisAlive()final booleanisDaemon()booleanfinal voidjoin()final voidjoin(long millis) final voidjoin(long millis, int nanos) voidrun()final voidsetDaemon(boolean daemon) static voidvoidfinal voidsetPriority(int newPriority) voidsetUncaughtExceptionHandler(TThread.UncaughtExceptionHandler uncaughtExceptionHandler) static voidsleep(long millis) voidstart()static voidyield()
-
Field Details
-
interruptHandler
-
-
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
-