[C++-sig] Re: boost::python and threads

Nikolay Mladenov nickm at sitius.com
Sun Jul 6 05:45:40 CEST 2003


David Abrahams wrote:
> 
> I don't believe that call policies can do what he wants yet, since
> there's no provision for state to be carried across the precall() and
> postcall() functions as required by Py_BEGIN_ALLOW_THREADS and
> Py_END_ALLOW_THREADS.

Yeah, ok. But this seems to be a bug, since the docs say 
x is obbject of type P - model of CallPolicy:
than 
x.precall()
....
x.postcall()

and x should be able to carry the thread state.
The fact that most call policies are static and cannot chain this type
of calls
should probably be fixed?





More information about the Cplusplus-sig mailing list