mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
13 lines
146 B
C++
13 lines
146 B
C++
#include "gilock.h"
|
|
|
|
GILock::GILock()
|
|
{
|
|
m_State = PyGILState_Ensure();
|
|
}
|
|
|
|
GILock::~GILock()
|
|
{
|
|
PyErr_Clear();
|
|
PyGILState_Release(m_State);
|
|
}
|