• Burlen Loring's avatar
    Safely use threaded C++ code from Python · 8ef2cb7c
    Burlen Loring authored
    This patch protects the Python interpreter from C++
    threaded code that potentially invokes Python code.
    Also, Force SWIG to release the GIL before C++ calls.
    This lets the Python interpreter run concurently with
    C++ as long as the C++ code doesn't execute and Python
    code. senseiPyGILState object can be used to protect
    C++ code that invokes Python code.
senseiPyGILState.h 522 Bytes