From 90625848de66746e70ea30c59fbd3ae687b2914b Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Sat, 22 May 2021 11:56:22 +0100 Subject: [PATCH] src/Main/main.cxx: support for properties locking control. Define properties that are passed to new SGPropertyLockControl() function in order to allow runtime control of whether we use property locking. --- src/Main/main.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 20337f73b..abfee4ea1 100755 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -617,6 +617,13 @@ int fgMainInit( int argc, char **argv ) } } + { + SGPropertyNode* active = globals->get_props()->getNode("/sim/property-locking", true /*create*/); + SGPropertyNode* verbose = globals->get_props()->getNode("/sim/property-locking-verbose", true /*create*/); + SGPropertyNode* timing = globals->get_props()->getNode("/sim/property-locking-timing", true /*create*/); + SGPropertyLockControl(active, verbose, timing); + } + const bool readOnlyFGHome = fgGetBool("/sim/fghome-readonly"); if (!readOnlyFGHome) { // now home is initialised, we can log to a file inside it