Package kilim.examples
Class Xorshift.X1
- All Implemented Interfaces:
Iterable<Long>,Iterator<Long>,Xorshift.Loop,Fiber.Worker
- Enclosing class:
Xorshift
-
Nested Class Summary
Nested classes/interfaces inherited from class kilim.Continuation
Continuation.FakeTask -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class kilim.Continuation
ex, execute, reset, runMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
X1
public X1()
-
-
Method Details
-
execute
Description 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:
PausableException
-
loop
public long loop(long num) - Specified by:
loopin interfaceXorshift.Loop
-