Ejemplo n.º 1
0
int thorium_worker_spawn(struct thorium_worker *self, int script)
{
    int name;

    name = thorium_node_spawn(self->node, script);

#if 0
    if (core_bitmap_get_bit_uint32_t(&node->flags, FLAG_ENABLE_ACTOR_LOAD_PROFILER)) {
        thorium_actor_enable_profiler(actor);
    }
#endif

    return name;
}
Ejemplo n.º 2
0
int biosal_thorium_engine_boot(struct biosal_thorium_engine *self, int script_identifier,
                struct thorium_script *script)
{
    /*
     * Register the script
     */
    thorium_node_add_script(&self->node, script_identifier, script);

    /*
     * Spawn the initial actor
     */
    thorium_node_spawn(&self->node, script_identifier);

    /*
     * Boot the Thorium node
     */
    return thorium_node_run(&self->node);
}