AvailThread

class AvailThread : Thread

An AvailThread is a thread managed by a particular Avail runtime. Instances may obtain the managing runtime through the static accessor AvailRuntime.currentRuntime. New instances will be created as necessary by an Avail runtime's executor.

Author

Todd L Smith

Parameters

runnable

The Runnable runnable that the new thread should execute.

interpreter

The Interpreter that this thread will temporarily bind to fibers while they are running in this thread.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun checkAccess()
Link copied to clipboard
open fun countStackFrames(): Int
Link copied to clipboard
open fun getId(): Long
Link copied to clipboard
open fun getStackTrace(): Array<StackTraceElement>
Link copied to clipboard
open fun getState(): Thread.State
Link copied to clipboard
fun getThreadGroup(): ThreadGroup
Link copied to clipboard
open fun interrupt()
Link copied to clipboard
fun isAlive(): Boolean
Link copied to clipboard
fun join()
fun join(p0: Long)
fun join(p0: Long, p1: Int)
Link copied to clipboard
fun resume()
Link copied to clipboard
open override fun run()
Link copied to clipboard
open fun start()
Link copied to clipboard
fun stop()
Link copied to clipboard
fun suspend()
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
var contextClassLoader: ClassLoader
Link copied to clipboard
var daemon: Boolean
Link copied to clipboard
val interpreter: Interpreter

The interpreter permanently bound to this thread.

Link copied to clipboard
val interrupted: Boolean
Link copied to clipboard
var name: String
Link copied to clipboard
var priority: Int
Link copied to clipboard
val runtime: AvailRuntime

The Avail runtime that owns this thread.

Link copied to clipboard