From 94027b1f50c8447d6113419738417602e3f4ef57 Mon Sep 17 00:00:00 2001 From: Alexey Shlyonskikh Date: Sat, 31 Aug 2024 23:16:00 +0300 Subject: [PATCH] Tag Python module as usable without GIL Note that calling algorithms is not thread-safe. However, this allows algorithms to call Python code from multiple threads. --- src/python_bindings/bindings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python_bindings/bindings.cpp b/src/python_bindings/bindings.cpp index 72021ba6bf..1062c58eda 100644 --- a/src/python_bindings/bindings.cpp +++ b/src/python_bindings/bindings.cpp @@ -26,7 +26,7 @@ INITIALIZE_EASYLOGGINGPP namespace python_bindings { -PYBIND11_MODULE(desbordante, module) { +PYBIND11_MODULE(desbordante, module, pybind11::mod_gil_not_used()) { using namespace pybind11::literals; if (std::filesystem::exists("logging.conf")) {