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

◆ request_shutdown()

void Lila::Lila::request_shutdown ( )

Request shutdown from any thread.

Signals await_shutdown() to return. Thread-safe.

Definition at line 292 of file Lila.cpp.

293{
294 m_shutdown_requested.store(true, std::memory_order_release);
295
296#ifdef MAYAFLUX_PLATFORM_MACOS
297 CFRunLoopStop(CFRunLoopGetMain());
298#elif defined(MAYAFLUX_PLATFORM_WINDOWS)
299 PostThreadMessage(MayaFlux::Parallel::g_MainThreadId, WM_QUIT, 0, 0);
300#endif
301}
std::atomic< bool > m_shutdown_requested
Definition Lila.hpp:222