# HG changeset patch
# User Jean-Francois Pieronne <jf.pieronne@laposte.net>
# Date 1737726921 -3600
#      Fri Jan 24 14:55:21 2025 +0100
# Node ID 6e0b22f464a6cebb092c4e0c3a31d83c5e6376dd
# Parent  05a16119f8153930910f6970b260c37885b74a3d
Compile using multithread reentrancy

diff --git a/python/local/ovms_module/ovms/ptd/build_vmsptd_module.com b/python/local/ovms_module/ovms/ptd/build_vmsptd_module.com
--- a/python/local/ovms_module/ovms/ptd/build_vmsptd_module.com
+++ b/python/local/ovms_module/ovms/ptd/build_vmsptd_module.com
@@ -5,7 +5,7 @@
 $
 $ define /noLog python_c_names "/names=(as_is,shortened)/accept=novaxc_keywords"
 $ define /noLog python_c_float "/float=ieee/IEEE_MODE=DENORM_RESULTS"
-$ define /noLog python_c_optim "/optimize=(level=5)"
+$ define /noLog python_c_optim "/optimize=(level=5)/REENTRANCY=MULTITHREAD"
 $
 $ PYTHON_C_DEBUG = f$trnlnm("PYTHON_C_DEBUG")
 $ PYTHON_C_FLOAT = f$trnlnm("PYTHON_C_FLOAT")