MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ expose_live() [2/2]

template<typename T >
bool MayaFlux::expose_live ( const char *  key,
T *  ptr 
)
noexcept

Exposes an existing raw pointer to the live arena under key.

Lifetime management remains entirely the caller's responsibility. The arena stores a no-op shared_ptr so live_cast returns a valid shared_ptr without affecting the object's actual lifetime.

Template Parameters
TType of the object.
Parameters
keyNull-terminated string used to locate the object from the JIT.
ptrRaw pointer to the existing object.
Returns
true on success, false if key is already registered or the directory is full.

Definition at line 368 of file LiveArena.hpp.

369{
370 return internal::live_arena_expose(key, std::shared_ptr<void>(ptr, [](void*) { }));
371}

References MayaFlux::internal::live_arena_expose().

+ Here is the call graph for this function: