![]() |
Spicy
|
#include <global-state.h>
Public Member Functions | |
GlobalState (const GlobalState &)=delete | |
GlobalState (GlobalState &&)=delete | |
GlobalState & | operator= (const GlobalState &)=delete |
GlobalState & | operator= (GlobalState &&)=delete |
Public Attributes | |
bool | runtime_is_initialized = false |
int | disable_abort_on_exceptions = 0 |
ResourceUsage | resource_usage_init |
std::unique_ptr< hilti::rt::Configuration > | configuration |
std::unique_ptr< hilti::rt::detail::DebugLogger > | debug_logger |
std::unique_ptr< hilti::rt::Context > | master_context |
std::vector< hilti::rt::detail::HiltiModule > | hilti_modules |
Struct capturing all truely global runtime state.
std::unique_ptr<hilti::rt::Configuration> hilti::rt::detail::GlobalState::configuration |
The runtime's configuration.
std::unique_ptr<hilti::rt::detail::DebugLogger> hilti::rt::detail::GlobalState::debug_logger |
Debug logger recording runtime diagnostics.
int hilti::rt::detail::GlobalState::disable_abort_on_exceptions = 0 |
If not zero, Configuration::abort_on_exception
is disabled.
std::vector<hilti::rt::detail::HiltiModule> hilti::rt::detail::GlobalState::hilti_modules |
List of HILTI modules registered with the runtime. This is filled through registerModule()
, which in turn gets called through a module's global constructors at initialization time.
std::unique_ptr<hilti::rt::Context> hilti::rt::detail::GlobalState::master_context |
The context for the main thread.
ResourceUsage hilti::rt::detail::GlobalState::resource_usage_init |
Resource usage at library initialization time.
bool hilti::rt::detail::GlobalState::runtime_is_initialized = false |
True once hilit::init()
` has finished.