Function CE::Workers::Json::parse_configuration
Defined in File configuration.h
Function Documentation
-
CE::Workers::Configuration CE::Workers::Json::parse_configuration(std::string_view document, const std::filesystem::path &source = {})
Declaration:
[[nodiscard]]Parse one strict versioned worker configuration from owned/copied text.
See also
- Parameters:
document – Borrowed JSON bytes consumed during this call.
source – Optional diagnostic label, not a file to open.
- Throws:
CE::Exceptions::invalid_args – For malformed JSON, duplicate/unknown properties, unsupported version, invalid names/options or read/open errors. Allocation failures can propagate. Runtime availability and required placement are resolved separately when constructing a pool/group. Link Cheryl::Workers with JSON enabled; no upstream JSON types enter the API.
- Returns:
Owned inert version1.0 settings; creates no threads/groups, discovers no topology and applies no CPU policy.