5#ifndef PYKERNEL_PYREVERSEPROXY_H
6#define PYKERNEL_PYREVERSEPROXY_H
15# undef _POSIX_C_SOURCE
21#include <unordered_map>
33 s_proxyMap.erase(
m_key);
55 return PyObject_CallObject(
m_func,NULL);
Define macros for attributes used to control the static checker.
static std::unordered_map< std::string, PyReverseProxy * > s_proxyMap ATLAS_THREAD_SAFE
proxy map protected by the python GIL.
PyReverseProxy()
default constructor : never used
static PyReverseProxy * getProxy(const std::string &key)
factory method
~PyReverseProxy()
destructor
PyReverseProxy(const std::string &key)
constructor
void setFunc(PyObject *func)
setter
PyObject * m_func
python code fragment to convert C++ obj to PyObj
PyObject * toPyObj(void *obj)