KiCad PCB EDA Suite
PyLOCK Class Reference

#include <python_scripting.h>

Public Member Functions

 PyLOCK ()
 
 ~PyLOCK ()
 

Private Attributes

PyGILState_STATE gil_state
 

Detailed Description

Definition at line 100 of file python_scripting.h.

Constructor & Destructor Documentation

◆ PyLOCK()

PyLOCK::PyLOCK ( )
inline

Definition at line 104 of file python_scripting.h.

104 { gil_state = PyGILState_Ensure(); }
PyGILState_STATE gil_state

References gil_state.

◆ ~PyLOCK()

PyLOCK::~PyLOCK ( )
inline

Definition at line 105 of file python_scripting.h.

105 { PyGILState_Release( gil_state ); }
PyGILState_STATE gil_state

References gil_state.

Member Data Documentation

◆ gil_state

PyGILState_STATE PyLOCK::gil_state
private

Definition at line 102 of file python_scripting.h.

Referenced by PyLOCK(), and ~PyLOCK().


The documentation for this class was generated from the following file: