|
Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
|
#include "serene/rt/engine.h"#include "serene/rt/context.h"#include "serene/rt/fiber.h"#include "serene/rt/fiber/mutex.h"#include "serene/rt/impl/hashmap.h"#include "serene/rt/mm/interface.h"#include "serene/rt/reactor.h"#include "serene/rt/source_manager.h"#include "serene/utils.h"#include <assert.h>#include <signal.h>#include <string.h>#include "third_party/xxhash.h"Go to the source code of this file.
Macros | |
| #define | XXH_INLINE_ALL |
| #define | XXH_STATIC_LINKING_ONLY |
| #define | XXH_ENABLE_AUTOVECTORIZE |
| #define | XXH_NO_STDLIB |
| #define | XXH_NO_XXH3 |
| #define | XXH_NO_LONG_LONG |
| #define | XXH_NO_STREAM |
| #define | XXH_IMPLEMENTATION |
Functions | |
| static srn_seed_t | srn_generate_seed () |
| srn_engine_t * | srn_engine_make (srn_mm_t *mm, const srn_configuration_t *config) |
| Create the engine over mm, copying config (the runtime's knobs) into it. | |
| void | srn_engine_shutdown (srn_engine_t *engine) |
| srn_hash_t | srn_hash (const srn_engine_t *engine, const void *data, size_t len) |
| srn_object_id_t | srn_allocate_object_id (srn_engine_t *engine) |
| srn_object_id_t srn_allocate_object_id | ( | srn_engine_t * | engine | ) |
Definition at line 193 of file engine.c.
| srn_engine_t * srn_engine_make | ( | srn_mm_t * | mm, |
| const srn_configuration_t * | config ) |
Create the engine over mm, copying config (the runtime's knobs) into it.
Pass nullptr for config to use the defaults. config is read only during the call, so the caller may pass a stack value.
Definition at line 103 of file engine.c.
| void srn_engine_shutdown | ( | srn_engine_t * | engine | ) |
Definition at line 174 of file engine.c.
|
inlinestatic |
Definition at line 67 of file engine.c.
| srn_hash_t srn_hash | ( | const srn_engine_t * | engine, |
| const void * | data, | ||
| size_t | len ) |
Definition at line 187 of file engine.c.