mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
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
12 lines
140 B
C++
12 lines
140 B
C++
#include "gilock.h"
|
|
|
|
GILock::GILock()
|
|
{
|
|
m_State = PyGILState_Ensure();
|
|
}
|
|
|
|
GILock::~GILock()
|
|
{
|
|
PyGILState_Release(m_State);
|
|
}
|