Lightgraph
C++17 light-graph engine API reference
Loading...
Searching...
No Matches
observability.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "lightgraph/internal/Globals.h"
5
12
13using AllocationFailureSite = ::LightgraphAllocationFailureSite;
14using AllocationFailureObserver = ::LightgraphAllocationFailureObserver;
15
17 ::lightgraphSetAllocationFailureObserver(observer);
18}
19
20inline void setAllocationFailureObserver(::TopologyObject& object, AllocationFailureObserver observer) {
21 ::lightgraphSetAllocationFailureObserver(object.runtimeContext(), observer);
22}
23
24inline void reportAllocationFailure(AllocationFailureSite site, uint16_t detail0 = 0, uint16_t detail1 = 0) {
25 ::lightgraphReportAllocationFailure(site, detail0, detail1);
26}
27
28inline void reportAllocationFailure(::TopologyObject& object,
30 uint16_t detail0 = 0,
31 uint16_t detail1 = 0) {
32 ::lightgraphReportAllocationFailure(object.runtimeContext(), site, detail0, detail1);
33}
34
35} // namespace lightgraph::integration
::LightgraphAllocationFailureSite AllocationFailureSite
void setAllocationFailureObserver(AllocationFailureObserver observer)
void reportAllocationFailure(AllocationFailureSite site, uint16_t detail0=0, uint16_t detail1=0)
::LightgraphAllocationFailureObserver AllocationFailureObserver