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 50 of file Runtime.cpp.

51{
52 std::lock_guard<std::mutex> guard(g_mutex);
53
54 if (!g_instance) {
55 return;
56 }
57
58 LILA_INFO(Lila::Emitter::SYSTEM,
59 "stop_lila: stopping on port " + std::to_string(g_port));
60
61 g_instance->stop_server();
62 g_instance.reset();
63 g_port = 0;
64
65 if (clear_persistent_store) {
66 internal::cleanup_persistent_store();
67 LILA_DEBUG(Lila::Emitter::SYSTEM, "stop_lila: cleared persistent store");
68 }
69}
#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: