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

20 lines
387 B
C++

#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;
};