Package kilim
package kilim
-
ClassDescriptionCell<T>A cell is a single-space buffer that supports multiple producers and a single consumer, functionally identical to Mailbox bounded to a size of 1 (and hence optimized for this size)a minimal bridge or trampoline between woven and unwoven code backed by a Fiber giving the programmer explicit control over the event loop see Task for a more general and easier to use green thread implementation that automatically handles the event loop see Generator for more user friendly wrapper to use override execute() and call run() each time run() is called, execute runs until it yields, returns or throws an exception return value of true means either execute returned or threw an exception (accessible as ex()) with state stored in an internal Fiber field across invocations to reuse a Continuation, call reset() Continuation provides no scheduler - it is entirely the responsibility of the calling code to call run() again once the pausing condition has been satisfied typically used for state machines and Generators or to port an existing event loop to kilim this is a low level facility, see kilim.examples.Xorshift.X2 for an example of direct useExitMsg<TT>This class serves as a context to manage and store the continuation stack.Generator<T>A Generator, from the caller's perspective, looks like a normal iterator that produces values.Extends Classloader just to have access to the (protected) findLoadedClass methodMailbox<T>This is a typed buffer that supports multiple producers and a single consumer.MailboxMPSC<T>This is a typed buffer that supports single producers and a single consumer.MailboxSPSC<T>This is a typed buffer that supports single producers and a single consumer.Pausable.Fork1<AA>Pausable.Pfun<XX,
YY, EE extends Throwable> Pausable.Psumer<XX,EE extends Throwable> Pausable.Spawn<TT>RingQueue<T>This is a basic FIFO Executor.State is the super class for customized State objects generated by ClassWeaver.Task<TT>A base class for tasks.Task.Invoke<TT>Task.Spawn<TT>Classloader that loads classes from the classpath spec given by the system property "kilim.class.path" and weaves them dynamically.