• Dominik Charousset's avatar
    Replace lazy singletons with new actor_system · 9dea9baa
    Dominik Charousset authored
    Redesign API to include a class called `actor_system` for keeping context and
    configuration of an actor application. This replaces the previous design based
    on implicit, lazy singletons. Consequently free functions such as `spawn` have
    been moved to `actor_system`. Once an actor system has been initialized, there
    is no way to lazily load modules on-the-fly. Messages types, actor factories,
    modules such as the middleman, and scheduling parameters have to be configured
    using `actor_system_conf` before starting the system. The config class also
    allows users to parse INI files on startup or to set parameters using the
    command line (both features are not implemented yet).
    9dea9baa
handle.hpp 2.87 KB