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

◆ request_shutdown()

void MayaFlux::Core::Engine::request_shutdown ( )

Request shutdown from any thread.

Signals the event loop to exit. Thread-safe. Call this to gracefully terminate await_shutdown().

Definition at line 184 of file Engine.cpp.

185{
186 m_should_shutdown.store(true, std::memory_order_release);
187
188#ifdef MAYAFLUX_PLATFORM_MACOS
189 CFRunLoopStop(CFRunLoopGetMain());
190#endif
191}
std::atomic< bool > m_should_shutdown
Definition Engine.hpp:332

References m_should_shutdown.