From 59307e9ba27fdebef2873558c5343d5dea0b9e01 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 17 Jun 2021 15:53:16 +0100 Subject: [PATCH] Emesary: allo main loop recipient shutdown --- simgear/nasal/NasalEmesaryInterface.cxx | 6 ++++++ simgear/nasal/NasalEmesaryInterface.hxx | 1 + 2 files changed, 7 insertions(+) diff --git a/simgear/nasal/NasalEmesaryInterface.cxx b/simgear/nasal/NasalEmesaryInterface.cxx index 7cffcb7f..609dd214 100644 --- a/simgear/nasal/NasalEmesaryInterface.cxx +++ b/simgear/nasal/NasalEmesaryInterface.cxx @@ -128,5 +128,11 @@ void initMainLoopRecipient() static_nasalMainLoopRecipient.reset(new NasalMainLoopRecipient); } +void shutdownMainLoopRecipient() +{ + static_nasalMainLoopRecipient.reset(); +} + + } // namespace nasal diff --git a/simgear/nasal/NasalEmesaryInterface.hxx b/simgear/nasal/NasalEmesaryInterface.hxx index 601db760..a9b2c907 100644 --- a/simgear/nasal/NasalEmesaryInterface.hxx +++ b/simgear/nasal/NasalEmesaryInterface.hxx @@ -22,5 +22,6 @@ namespace nasal { void initMainLoopRecipient(); +void shutdownMainLoopRecipient(); } // namespace nasal