Skip to content

Commit

Permalink
Tag Python module as usable without GIL
Browse files Browse the repository at this point in the history
Note that calling algorithms is not thread-safe. However, this allows
algorithms to call Python code from multiple threads.
  • Loading branch information
BUYT-1 authored and chernishev committed Sep 12, 2024
1 parent 1ba2157 commit 94027b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python_bindings/bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down

0 comments on commit 94027b1

Please sign in to comment.