MCPcopy Create free account
hub / github.com/Niko1221/Strata / one_token_self_commit

Function one_token_self_commit

engine/src/core/verify.cpp:570–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

568}
569
570bool one_token_self_commit() {
571#if defined(STRATA_USE_HIP)
572 static const bool on = [] {
573 const char* v = std::getenv("STRATA_ONE_TOKEN_COMMIT"); // HIP: opt-in (=1)
574 return v != nullptr && std::atoi(v) != 0;
575 }();
576 return on;
577#else
578 static const bool on = [] {
579 const char* v = std::getenv("STRATA_ONE_TOKEN_COMMIT");
580 return v == nullptr || std::atoi(v) != 0;
581 }();
582 return on;
583#endif
584}
585
586bool mapped(size_t bytes, void** h, void** d) {
587#if defined(STRATA_USE_HIP)

Callers 3

verify.cppFile · 0.70
commitMethod · 0.70
commit_deferredMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected