|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< T > MayaFlux::make_live | ( | const char * | key, |
| Args &&... | args | ||
| ) |
Constructs a T in-place inside the live arena and registers it under key.
The returned shared_ptr is stable for the process lifetime and participates in normal shared_ptr ref-counting. The arena owns the underlying storage; the shared_ptr uses a no-op deleter so the arena remains the sole allocator.
Reachable from JIT'd code immediately via live_cast<T>(key).
| T | Type to construct. |
| key | Null-terminated string used to locate the object from the JIT. Must be unique within the arena. |
| args | Arguments forwarded to T's constructor. |
key is already registered. Definition at line 321 of file LiveArena.hpp.
References MayaFlux::internal::live_arena_alloc().
Here is the call graph for this function: