PyEval_CallObject and threads

Phlip phlip_cpp at
Mon Mar 12 20:12:53 CET 2001

Phlip wrote:

> Thonpy:
> My colleague came over and asked me to write this:
> "We got multiple C++ pthreads calling PyEval_CallObject. How threadsafe is
> the Python API? A C++ module using Boost BPL creates multiple threads,
> which then call back into Python. When two threads simultaneously call
> PyEval_CallObject we go boom."
> I will now go examine his serialization primitives. But if anyone has any
> better ideas...

Forgot to mention: We are using Stackless Python.

  Phlip                          phlip_cpp at
============== ==============
  --  DARE to resist drug-war profiteering  --

More information about the Python-list mailing list