Class TThread

java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.lang.TThread
All Implemented Interfaces:
TRunnable

public class TThread extends TObject implements TRunnable
  • Field Details

  • Constructor Details

    • TThread

      public TThread()
    • TThread

      public TThread(String name)
    • TThread

      public TThread(TRunnable target)
    • TThread

      public TThread(TRunnable target, String name)
  • Method Details

    • start

      public void start()
    • run

      public void run()
      Specified by:
      run in interface TRunnable
    • currentThread

      public static TThread currentThread()
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • isDaemon

      public final boolean isDaemon()
    • setDaemon

      public final void setDaemon(boolean daemon)
    • join

      public final void join(long millis, int nanos) throws InterruptedException
      Throws:
      InterruptedException
    • join

      public final void join(long millis) throws InterruptedException
      Throws:
      InterruptedException
    • join

      public final void join() throws InterruptedException
      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

      public static boolean holdsLock(TObject obj)
    • sleep

      public static void sleep(long millis) throws TInterruptedException
      Throws:
      TInterruptedException
    • setPriority

      public final void setPriority(int newPriority)
    • getPriority

      public final int getPriority()
    • getStackTrace

      public TStackTraceElement[] getStackTrace()
    • getContextClassLoader

      public TClassLoader getContextClassLoader()
    • getUncaughtExceptionHandler

      public TThread.UncaughtExceptionHandler getUncaughtExceptionHandler()
    • setUncaughtExceptionHandler

      public void setUncaughtExceptionHandler(TThread.UncaughtExceptionHandler uncaughtExceptionHandler)
    • getDefaultUncaughtExceptionHandler

      public static TThread.UncaughtExceptionHandler getDefaultUncaughtExceptionHandler()
    • setDefaultUncaughtExceptionHandler

      public static void setDefaultUncaughtExceptionHandler(TThread.UncaughtExceptionHandler handler)