MayaFlux 0.3.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 284 of file Lila.cpp.

285{
286 m_shutdown_requested.store(true, std::memory_order_release);
287
288#ifdef MAYAFLUX_PLATFORM_MACOS
289 CFRunLoopStop(CFRunLoopGetMain());
290#elif defined(MAYAFLUX_PLATFORM_WINDOWS)
291 PostThreadMessage(MayaFlux::Parallel::g_MainThreadId, WM_QUIT, 0, 0);
292#endif
293}
std::atomic< bool > m_shutdown_requested
Definition Lila.hpp:209