Package kilim.examples
Class Userdata
- java.lang.Object
-
- kilim.Task
-
- kilim.examples.Userdata
-
- All Implemented Interfaces:
java.lang.Runnable,EventSubscriber,Fiber.Worker
public class Userdata extends Task
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUserdata.Eats1static classUserdata.Eats1Implstatic classUserdata.Eats2static classUserdata.Eats3static interfaceUserdata.Eats4static interfaceUserdata.Eats5-
Nested classes/interfaces inherited from class kilim.Task
Task.Fork, Task.Invoke<TT>, Task.Spawn<TT>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Userdata.Eats1eats1(package private) Userdata.Eats2eats2-
Fields inherited from class kilim.Task
done, exitResult, fiber, id, pauseReason, running, scheduler, timer
-
-
Constructor Summary
Constructors Constructor Description Userdata()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voideater(Userdata.Eats4 eat, int kfood)voidexecute()static voidmain(java.lang.String[] args)start the userdata task this entry point supports automatic runtime weaving if the code hasn't been woven when invoked, it will trampoline off the WeavingClassLoader-
Methods inherited from class kilim.Task
checkKill, dump, equals, errNotWoven, errNotWoven, errorExit, errorExit, execute, exit, exit, fork, getCurrentTask, getExecutionThread, getPauseReason, getScheduler, getStackDepth, getState, getTid, hashCode, id, idledown, informOnExit, invoke, isDone, join, joinb, onEvent, pause, pause, pinToThread, prePin, resume, resumeOnScheduler, run, setPauseReason, setScheduler, setTid, shutdown, sleep, spawn, spawn, start, toString, unpinFromThread, yield, yield
-
-
-
-
Field Detail
-
eats1
Userdata.Eats1 eats1
-
eats2
Userdata.Eats2 eats2
-
-
Method Detail
-
eater
public static void eater(Userdata.Eats4 eat, int kfood) throws Pausable
- Throws:
Pausable
-
execute
public void execute() throws Pausable- Specified by:
executein interfaceFiber.Worker- Overrides:
executein classTask- Throws:
Pausable
-
main
public static void main(java.lang.String[] args)
start the userdata task this entry point supports automatic runtime weaving if the code hasn't been woven when invoked, it will trampoline off the WeavingClassLoader
-
-