HDK
|
#include <pyCall.h>
Public Member Functions | |
TfPyCall (TfPyObjWrapper const &c) | |
template<typename... Args> | |
Return | operator() (Args...args) |
Provide a way to call a Python callable.
Usage is as follows:
Generally speaking, TfPyCall instances may be copied, assigned, destroyed, and invoked without the client holding the GIL. However, if the Return template parameter is a hboost::python::object (or a derived class, such as list or tuple) then the client must hold the GIL in order to invoke the call operator.
|
inlineexplicit |
Construct with callable c. Constructing with a hboost::python::object
works, since those implicitly convert to TfPyObjWrapper
, however in that case the GIL must be held by the caller.
|
inline |