General KERNEL Documentation     End User KERNEL Services  


src/Container/Container_init_python.hxx File Reference

#include <pthread.h>
#include <Python.h>

Include dependency graph for Container_init_python.hxx:

Go to the source code of this file.

Data Structures

struct  KERNEL_PYTHON

Defines

#define CONTAINER_EXPORT
#define Py_ACQUIRE_NEW_THREAD
#define Py_RELEASE_NEW_THREAD


Define Documentation

#define CONTAINER_EXPORT
 

#define Py_ACQUIRE_NEW_THREAD
 

Value:

PyEval_AcquireLock(); \
  PyThreadState *myTstate = PyThreadState_New(KERNEL_PYTHON::_interp); \
  PyThreadState *myoldTstate = PyThreadState_Swap(myTstate);

#define Py_RELEASE_NEW_THREAD
 

Value:

PyEval_ReleaseThread(myTstate); \
  PyThreadState_Delete(myTstate);