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

◆ expose_live() [1/2]

template<typename T >
bool MayaFlux::expose_live ( const char *  key,
const std::shared_ptr< T > &  obj 
)
noexcept

Exposes an existing shared_ptr-managed object to the live arena under key.

The shared_ptr ref-count is incremented; the object remains alive at least as long as the arena entry exists. Reachable from JIT'd code via live_cast<T>(key).

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

Definition at line 349 of file LiveArena.hpp.

350{
351 return internal::live_arena_expose(key, std::static_pointer_cast<void>(obj));
352}

References MayaFlux::internal::live_arena_expose().

+ Here is the call graph for this function: