MayaFlux 1.0.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 256 of file Engine.cpp.

257{
258 m_should_shutdown.store(true, std::memory_order_release);
259
260#ifdef MAYAFLUX_PLATFORM_MACOS
261 CFRunLoopStop(CFRunLoopGetMain());
262#endif
263}
std::atomic< bool > m_should_shutdown
Definition Engine.hpp:393

References m_should_shutdown.