OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
opencog::PythonThreadLocker Class Reference

#include <PythonEval.h>

Public Member Functions

 PythonThreadLocker ()
 
 ~PythonThreadLocker ()
 

Private Attributes

PyGILState_STATE state
 

Detailed Description

Each call of the embedded python code could be easily locked by object of this class

Definition at line 63 of file PythonEval.h.

Constructor & Destructor Documentation

opencog::PythonThreadLocker::PythonThreadLocker ( )
inline

Definition at line 69 of file PythonEval.h.

opencog::PythonThreadLocker::~PythonThreadLocker ( )
inline

Definition at line 72 of file PythonEval.h.

References state.

Member Data Documentation

PyGILState_STATE opencog::PythonThreadLocker::state
private

Definition at line 66 of file PythonEval.h.


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