[C++-sig] Re: Boost.Python and threads
by David Abrahams other posts by this author
Oct 3 2003 10:28PM messages near this date
Re: [C++-sig] Re: Boost.Python and threads
|
Re: [C++-sig] Re: Boost.Python and threads
Pierre Barbier de Reuille <pierre.barbier@[...].fr> writes:
> Hello,
>
> I've followed the thread about boost.python multithreading between
> Lijun Qin and David Abrahams and I wondered where was the
> implementation of this ? If there is no implementation, what is the
> best way to safely unblock the python threads ? Or at least where
> can I find information about this ?
Sorry it took so long to reply Pierre; I was really hoping someone
else (like Lijun) would answer.
Anyway, I don't have an implementation of multithreading support, at
least not yet.
THe best way to safely unblock threads that I know of is to write a
thin wrapper around your function which uses Py_BEGIN_ALLOW_THREADS
and Py_END_ALLOW_THREADS around a call to the real function.
HTH,
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig
Thread:
Pierre Barbier de Reuille
Lijun Qin
David Abrahams
Pierre Barbier de Reuille
Niall Douglas
David Abrahams
Joel Gerard
Joel Gerard
|