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

◆ enable_live_exposure()

MAYAFLUX_API void MayaFlux::internal::enable_live_exposure ( )
noexcept

Turns on exposure for the MF_LIVE_EXPOSE macros in the linked library.

Called at load time by any translation unit compiled with MAYAFLUX_LIVE. Library code such as the Creator factories cannot see the caller's define, so they consult this flag instead. There is no way to turn it off again.

Definition at line 9 of file LiveArena.cpp.

10 {
11 g_live_exposure_enabled.store(true, std::memory_order_relaxed);
12 }
std::atomic< bool > g_live_exposure_enabled
Whether the MF_LIVE_EXPOSE macros publish objects to the arena.
Definition LiveArena.cpp:7

References g_live_exposure_enabled.