Epok Engine

EPOK RUNTIME

epok::resource_usage

Variable

Variable

Exposes `resource_usage` on the `epok` namespace for bounded runtime resource registries and accounting.

Belongs to
epok
Header
resources.hpp

Declaration

Declaration
ResourceUsage resource_usage

Exposes `resource_usage` on the `epok` namespace for bounded runtime resource registries and accounting.

Type
ResourceUsage
Storage
Namespace scope

Example

C++ example
#include "resources.hpp"

auto value = epok::resource_usage;

When it helps

Use this member when you need direct access to the state represented by its declared type.

Trade-offs and warnings

Direct field access has no validation step. Keep the owning object alive, respect units and ranges, and do not mutate state while hardware or another subsystem is consuming it.

Declared in runtime/resources.hpp:14