Python GIL wrapper.
#include <PyInterp_Interp.h>
Public Member Functions | |
| PyLockWrapper (PyThreadState *theThreadState) | |
| Constructor. Automatically acquires GIL. | |
| ~PyLockWrapper () | |
| Destructor. Automatically releases GIL. | |
Private Attributes | |
| PyThreadState * | myThreadState |
| PyThreadState * | mySaveThreadState |
| PyGILState_STATE | _savestate |
| PyLockWrapper::PyLockWrapper | ( | PyThreadState * | theThreadState | ) |
| theThreadState | python thread state |
References PyInterp_Interp._interp, _savestate, and myThreadState.
| PyLockWrapper::~PyLockWrapper | ( | ) |
References PyInterp_Interp._interp, _savestate, and myThreadState.
PyThreadState* PyLockWrapper.myThreadState [private] |
PyThreadState* PyLockWrapper.mySaveThreadState [private] |
PyGILState_STATE PyLockWrapper._savestate [private] |