Files
vrpmdv-yocto-recipes/recipes-vrpmdv/recipes-base/vrpmdv-web/files/rt_service/include/GILLock.h
Markus Lehr 96308eb092 added the rtservice, Webserver, webfrontend with:
1. Monitoring
2. Monitoringfiles
3. Download
2024-07-10 11:36:16 +02:00

22 lines
340 B
C++

#include <boost/python.hpp>
#include <boost/thread.hpp>
//Use this class in a c++ funktion that called into python : c++ => python
class PyLockGIL
{
public:
PyLockGIL();
~PyLockGIL();
PyLockGIL(const PyLockGIL&) = delete;
PyLockGIL& operator=(const PyLockGIL&) = delete;
private:
PyGILState_STATE m_gstate;
};