Companion

object Companion

Functions

Link copied to clipboard
fun A_Fiber.captureInDebugger(debugger: AvailDebuggerModel)

Attach the given debugger to this fiber. Do nothing if the fiber is already attached to another debugger.

Link copied to clipboard
fun A_Fiber.clearGeneralFlag(flag: FiberDescriptor.GeneralFlag)
Link copied to clipboard
fun A_Fiber.clearTraceFlag(flag: FiberDescriptor.TraceFlag)
Link copied to clipboard
fun A_Fiber.fiberNameSupplier(supplier: () -> A_String)
Link copied to clipboard
fun A_Fiber.generalFlag(flag: FiberDescriptor.GeneralFlag): Boolean
Link copied to clipboard
fun A_Fiber.getAndClearReificationWaiters(): List<(A_Continuation) -> Unit>

Extract the current A_Set of pojo-wrapped actions to perform when this fiber is next reified. Replace it with the empty set.

Link copied to clipboard
Link copied to clipboard

Is the specified interrupt request flag set for the receiver?

Link copied to clipboard
fun A_Fiber.recordVariableAccess(variable: A_Variable, wasRead: Boolean)

Record access of the specified variable by this fiber.

Link copied to clipboard
fun A_Fiber.releaseFromDebugger()

This fiber was captured by a debugger. Release it from that debugger, allowing it to continue running freely when/if its state indicates it should.

Link copied to clipboard
fun A_Fiber.setGeneralFlag(flag: FiberDescriptor.GeneralFlag)
Link copied to clipboard
Link copied to clipboard
fun A_Fiber.setSuccessAndFailure(onSuccess: (AvailObject) -> Unit, onFailure: (Throwable) -> Unit)

Set the success and failure actions of this fiber. The former runs if the fiber succeeds, passing the resulting AvailObject, and also stashing it in the fiber. The latter runs if the fiber fails, passing the Throwable that caused the failure.

Link copied to clipboard
fun A_Fiber.setTraceFlag(flag: FiberDescriptor.TraceFlag)
Link copied to clipboard
fun A_Fiber.traceFlag(flag: FiberDescriptor.TraceFlag): Boolean
Link copied to clipboard
fun A_Fiber.whenContinuationIsAvailableDo(whenReified: (A_Continuation) -> Unit)

Ensure the specified action is invoked with this fiber's reified continuation as soon as it's available. Note that this triggers an interrupt on the fiber to ensure a timely capture of the stack.

Properties

Link copied to clipboard
var A_Fiber.availLoader: AvailLoader?

Answer the loader bound to the receiver, or null if the receiver is not a loader fiber.

Link copied to clipboard
val A_Fiber.canStyle: Boolean

Check if this fiber is allowed to be performing styling operations. For it to be allowed, the fiber must have been launched in the VM by newStylerFiber. Answer true if the fiber is permitted to style, otherwise false.

Link copied to clipboard
var A_Fiber.continuation: A_Continuation

The fiber's current A_Continuation if suspended, otherwise nil.

Link copied to clipboard
val A_Fiber.currentLexer: A_Lexer
Link copied to clipboard
val A_Fiber.debugLog: StringBuilder

Dispatch to the descriptor.

Link copied to clipboard
var A_Fiber.executionState: FiberDescriptor.ExecutionState

Dispatch to the descriptor.

Link copied to clipboard
val A_Fiber.failureContinuation: (Throwable) -> Unit

Answer the continuation that accepts the Throwable responsible for abnormal termination of this fiber.

Link copied to clipboard
var A_Fiber.fiberGlobals: A_Map

Dispatch to the descriptor.

Link copied to clipboard
val A_Fiber.fiberHelper: FiberDescriptor.FiberHelper

Answer the FiberDescriptor.FiberHelper associated with this A_Fiber.

Link copied to clipboard
val A_Fiber.fiberName: A_String
Link copied to clipboard
var A_Fiber.fiberResult: AvailObject
Link copied to clipboard
val A_Fiber.fiberResultType: A_Type
Link copied to clipboard
var A_Fiber.heritableFiberGlobals: A_Map
Link copied to clipboard
var A_Fiber.joiningFibers: A_Set

The A_Set of A_Fibers waiting for this one to end.

Link copied to clipboard
var A_Fiber.priority: Int

Answer this fiber's current priority.

Link copied to clipboard
val A_Fiber.resultContinuation: (AvailObject) -> Unit

Answer the continuation that accepts the result produced by the receiver's successful completion.

Link copied to clipboard
var A_Fiber.suspendingFunction: A_Function

The primitive A_Function that's suspending the fiber.

Link copied to clipboard
var A_Fiber.textInterface: TextInterface

The TextInterface for routing I/O to and from this fiber.

Link copied to clipboard
val A_Fiber.uniqueId: Long

Answer the unique identifier of this A_Fiber fiber.

Link copied to clipboard
val A_Fiber.variablesReadBeforeWritten: A_Set

The set of variables that were read before written. Only variables still live are included in this set; the trace mechanism retains variables only weakly.

Link copied to clipboard
val A_Fiber.variablesWritten: A_Set

Answer the set of variables that were written. Only variables still live are included in this set; the trace mechanism retains variables only weakly.

Link copied to clipboard
var A_Fiber.wakeupTask: TimerTask?