MayaFlux 0.4.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 276 of file Engine.cpp.

277{
278 m_should_shutdown.store(true, std::memory_order_release);
279
280#ifdef MAYAFLUX_PLATFORM_MACOS
281 CFRunLoopStop(CFRunLoopGetMain());
282#endif
283}
std::atomic< bool > m_should_shutdown
Definition Engine.hpp:393

References m_should_shutdown.