Local Module

Local module provides environment for creating sessions. Session is a main place for defining and processing Vitrall's configured behavior.

Session can be defined in both C++ and Lua (see scripting module).

Session function shall not execute continuously, but rather upon reaching its end it shall post execution of itself again (or of other defined session function). Vitrall will call that function as soon as possible.

Session contains a queue of type Core::TaskQueue, that is by default put in main anteroom of Vitrall server, and has its Singleness flag by default set to true, so it is guaranteed that session is executed sequentially.

If session is used as a context for rendering (it hosts Graphics::Display object), its queue is moved to an anteroom associated with given rendering context.