Package org.teavm.runtime
Class Fiber
java.lang.Object
org.teavm.runtime.Fiber
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic int -
Method Summary
Modifier and TypeMethodDescriptionstatic Fibercurrent()static booleangetBoolean(Object v) static bytestatic charstatic doublestatic floatstatic intstatic longstatic shortbooleanbooleandoublefloatpopFloat()intpopInt()longpopLong()voidpush(double value) voidpush(float value) voidpush(int value) voidpush(long value) voidstatic voidreversePush(double value, Fiber fiber) static voidreversePush(float value, Fiber fiber) static voidreversePush(int value, Fiber fiber) static voidreversePush(long value, Fiber fiber) static voidreversePush(Object value, Fiber fiber) static voidreversePush(Fiber.PlatformFunction value, Fiber fiber) static voidreversePush(Fiber.PlatformObject value, Fiber fiber) static voidstatic voidstart(Fiber.FiberRunner runner, boolean daemon) static Objectsuspend(Fiber.AsyncCall call)
-
Field Details
-
STATE_RUNNING
public static final int STATE_RUNNING- See Also:
-
STATE_SUSPENDING
public static final int STATE_SUSPENDING- See Also:
-
STATE_RESUMING
public static final int STATE_RESUMING- See Also:
-
userThreadCount
public static int userThreadCount
-
-
Method Details
-
push
public void push(int value) -
push
public void push(long value) -
push
public void push(float value) -
push
public void push(double value) -
push
-
reversePush
-
reversePush
-
reversePush
-
reversePush
-
reversePush
-
reversePush
-
reversePush
-
popInt
public int popInt() -
popLong
public long popLong() -
popFloat
public float popFloat() -
popDouble
public double popDouble() -
popObject
-
popPlatformObject
-
popPlatformFunction
-
current
-
isSuspending
public boolean isSuspending() -
isResuming
public boolean isResuming() -
getBoolean
-
getByte
-
getShort
-
getInt
-
getChar
-
getLong
-
getFloat
-
getDouble
-
suspend
- Throws:
Throwable
-
start
-
runMain
-