Files
modorganizer-plugin_python/src/runner/gilock.cpp
T
Tannin 6d99b33c61 - separated python proxy into two dlls. One is a wrapper without external
dependencies that fulfills the plugin interface. The other contains the actual python
functionality. This way the outer dll can always be loaded and report issues.
- The build process embeds the second dll into the first, this way only one dll has to be shipped
2013-09-01 18:36:43 +02:00

12 lines
140 B
C++

#include "gilock.h"
GILock::GILock()
{
m_State = PyGILState_Ensure();
}
GILock::~GILock()
{
PyGILState_Release(m_State);
}