tin  1.5.9
resources.h File Reference

Static resource accounting for runtimes and task executors. More...

#include <cstddef>
#include "tsm.h"
#include "tsm/runtime/coroutine.h"
Include dependency graph for resources.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tsm::runtime::resource_snapshot
 
struct  tsm::runtime::resource_budget
 
struct  tsm::runtime::task_group_resources< Groups >
 
struct  tsm::runtime::runtime_resources< Runtime, TimerSlots, Groups >
 
struct  tsm::runtime::resource_contract< Runtime, Budget, TimerSlots, Groups >
 
struct  tsm::runtime::profile_resource_contract< Profile, Runtime, TimerSlots, Groups >
 

Namespaces

 tsm
 
 tsm::runtime
 
 tsm::runtime::detail
 

Functions

consteval bool tsm::runtime::fits (resource_snapshot const &snapshot, resource_budget const &budget)
 

Detailed Description

Static resource accounting for runtimes and task executors.

Embedded applications need to know how much bounded storage a configuration asks for before it is deployed. These traits expose the values that are already fixed by runtime and task definitions: event payload size, queue slots, coroutine frames, task count, and timer slots.