|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< T > MayaFlux::store | ( | std::string_view | key, |
| std::shared_ptr< T > | obj | ||
| ) |
Transfer ownership of an existing object to the persistent store and expose it to the live arena under key.
The persistent store retains the object for process lifetime. The live arena entry allows JIT'd code to reach the object via live_cast<T>(key). No-op on the arena side when MAYAFLUX_LIVE is not defined.
| T | Any type managed by shared_ptr. |
| key | Arena key used to locate the object from JIT'd code. |
| obj | Object to retain and expose. |
Definition at line 48 of file Persist.hpp.
References MF_LIVE_EXPOSE, and MayaFlux::internal::persistent_store().
Here is the call graph for this function: