Package kilim.examples
Class Xorshift.X2
- java.lang.Object
-
- kilim.Continuation
-
- kilim.examples.Xorshift.X2
-
- All Implemented Interfaces:
Xorshift.Loop,Fiber.Worker
- Enclosing class:
- Xorshift
public static class Xorshift.X2 extends Continuation implements Xorshift.Loop
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class kilim.Continuation
Continuation.FakeTask
-
-
Field Summary
Fields Modifier and Type Field Description (package private) longresult
-
Constructor Summary
Constructors Constructor Description X2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()the top level entrypoint for the continuation override this method cannot be called directly - use run() instead use Fiber.yield() to yield control cooperatively and return execution to the caller of run()longloop(long num)-
Methods inherited from class kilim.Continuation
ex, execute, reset, run
-
-
-
-
Method Detail
-
execute
public void execute() throws PausableDescription copied from class:Continuationthe top level entrypoint for the continuation override this method cannot be called directly - use run() instead use Fiber.yield() to yield control cooperatively and return execution to the caller of run()- Specified by:
executein interfaceFiber.Worker- Overrides:
executein classContinuation- Throws:
Pausable
-
loop
public long loop(long num)
- Specified by:
loopin interfaceXorshift.Loop
-
-