MayaFlux 0.2.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 242 of file Lila.cpp.

243{
244 m_shutdown_requested.store(true, std::memory_order_release);
245
246#ifdef MAYAFLUX_PLATFORM_MACOS
247 CFRunLoopStop(CFRunLoopGetMain());
248#endif
249}
std::atomic< bool > m_shutdown_requested
Definition Lila.hpp:209