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

◆ stop_lila()

MAYAFLUX_HOST_API void MayaFlux::Host::Live::stop_lila ( bool  clear_persistent_store = false)

Stop the running Lila interpreter and TCP server.

Any JIT'd function pointers obtained through this session become invalid after this returns.

Parameters
clear_persistent_storeIf true, also empties the persistent store so objects created during the session are released. Defaults to false so a subsequent start_lila() can resume against store()-held state.

Definition at line 66 of file Runtime.cpp.

67{
68 std::lock_guard<std::mutex> guard(g_mutex);
69
70 if (!g_instance) {
71 return;
72 }
73
74 LILA_INFO(Lila::Emitter::SYSTEM,
75 "stop_lila: stopping on port " + std::to_string(g_port));
76
77 g_instance->stop_server();
78 g_instance.reset();
79 g_port = 0;
80
81 if (clear_persistent_store) {
82 internal::cleanup_persistent_store();
83 LILA_DEBUG(Lila::Emitter::SYSTEM, "stop_lila: cleared persistent store");
84 }
85}
#define LILA_DEBUG(emitter, msg)
#define LILA_INFO(emitter, msg)

References MayaFlux::internal::cleanup_persistent_store(), LILA_DEBUG, and LILA_INFO.

+ Here is the call graph for this function: