next version

This commit is contained in:
2024-06-25 20:47:51 +02:00
parent 34f4d6cdba
commit cbc3ac7a64
85 changed files with 36723 additions and 3 deletions

19
include/RelGILLock.h Normal file
View File

@@ -0,0 +1,19 @@
#include <boost/python.hpp>
#include <boost/thread.hpp>
//Use this class in a c++ funktion that is called from python : python => c++
class PyRelinquishGIL
{
public:
PyRelinquishGIL();
~PyRelinquishGIL();
PyRelinquishGIL(const PyRelinquishGIL&) = delete;
PyRelinquishGIL& operator=(const PyRelinquishGIL&) = delete;
private:
PyThreadState* m_thread_state;
};